Ok, I've tried to do a 301 from an old website to the new with the .htaccess file. After I've added the information and uploaded to the web host, I don't get transferred to the new domain. Can somebody show me some code that I could implement? All of the htaccess code I Googled didn't work for me. Thanks, Joe
I want to do the 301 to get the link juice flowing to the new site. My client has a PR2 that I want to take advantage of.
All you have to place in the .htaccess is this: Redirect 301 / http://www.newdomain.com/ Code (markup):
I did do this, although this is how I did it below. Redirect 301 index.html http://www.newdomain.com/index.html
Yes, I would be interested in doing all sub pages. But wouldn't I have to manually do each page? I mean, what if somebody clicked on a link to an old subpage? They would be forwarded to the top domain right? From what I gather, I would have to redirect each page to it's corresponding page on the new domain? It shouldn't be too bad since this site is relatively small if that's what I've got to do. I really appreciate your help.
Nope, if you just use my code, all subpages will also be redirected to the correct new location htaccess simply uses the first / to match the request, and then sends everything at the end of the URL to the new location. At least, it works for me.