I’m working on a site where we’ll need to change some of the URLs for SEO purposes. I know you can do permanent redirects from inside the Google and Bing webmaster tools, but isn’t it better to do this from within the site using a robot.txt file or some other method?
Tim. thanks for the link. I do have a few questions.
Will I need to redirect both www and non www versions of the site? For example www.mysite.com/page and mysite.com/page?
You should already be redirecting one of these to the other to prevent search engines thinking you’ve two different sites with the same content.
Is there any difference between Redirect Permanent and Redirect 301. I see both of these codes used. See this: [en] .htaccess Editor
These are both the same as a 301 is a permanent redirect.
If nothing currently exists in the .htaccess file do I need to include anything other than the redirect code?
Just the redirection code will be fine for now although you can add items to the file as you need to.
Regards,
Tim.