How do I get the root index page to redirect to a subdirectory without affecting SEO?
Posted
by
paradroid
on Pro Webmasters
See other posts from Pro Webmasters
or by paradroid
Published on 2012-09-08T03:39:50Z
Indexed on
2012/09/08
3:49 UTC
Read the original article
Hit count: 208
I am reviving/reorganising my personal WordPress blog.
It's using a URL that looks like this:
http://mydomain.com/blog
The webserver 301 redirects www.mydomain.com to mydomain.com.
I want to use the blog
subdirectory because I plan to add other parts to the site, with the blog only being one part of the site.
However, at the moment there is nothing there but the blog, so I want to have the root index page redirect to the blog for the time being.
I have been using this on the root index.html
page to do the redirect...
<meta http-equiv="REFRESH" content="0;url=./blog"></HEAD>
...but this seemed to have stopped the site being indexed by Google and Bing.
How do I do this without affecting SEO? Also, what URL should I put in the sitemap.xml
?
© Pro Webmasters or respective owner