Hey guys, I have a website such as this: http://www.blue.com I'm going to integrate it with another website such as this: http://colors.com [doesn't use www] I'd like it to be hosted like this: http://blue.colors.com There are thousands of posts at http://www.blue.com and many of them are doing well in Google. The lucky part is that I think we can use htaccess to foward the entire site with some simple commands, cuz the structure will stay the same (we shouldn't need to setup tons of specific rules in htaccess). Please offer any tips for proper 301 htaccess forwarding. We don't really care much about other random pages cuz they don't get much traffic, but they should be able to forward using the same general htaccess rules as the above examples... we just need some advice for specific htaccess code! http://www.blue.com/about/ http://www.blue.com/resources/ More info: Example page like http://www.blue.com/region/russia/ ... needs to forward to this location: http://blue.colors.com/region/russia/ Another example page like http://www.blue.com/russia/good-stuff/ ... needs to foward to this location: http://blue.colors.com/russia/good-stuff/ And yes, our site is based on Wordpress. region = category base russia = example category good-stuff = example post THANKS!
You should use something like this in http://www.blue.com/ .htaccess RewriteRule ^(.*)$ http://blue.colors.com/$1 [R=301,L] be sure all your files work in http://blue.colors.com/
Cool thanks Dimma! We will try that and check back. What do you mean "be sure all your files work"? + Rep added.
You should copy all your files and setup all config, databases etc from http://www.blue.com/ to http://blue.colors.com/