Redirect 301 from old site to new site using .htaccess

October 20, 2010 16:47

I have the old website which placed in sub-domain. Because this blog is launched, so all the links point to old website should be re-direct to the new website. However, the links are different with WordPress, so I would re-direct all links to new website’s homepage.

Simply, job is done by adding one line in .htaccess which is placed in old website’s root directory:

// .htaccess in www.oldsite.com root folder
RedirectMatch 301 "^/(.*)$" "http://www.newsite.com"

That is, is it easy?

Share

Comments are closed.