RewriteRule ^(.*)$ http://www.shapeacake.com/$1 [R=301,L]
Create a .htaccess file with the below code, it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
Please REPLACE www.newdomain.com in the above code with your actual domain name.
In addition to the redirect I would suggest that you contact every backlinking site to modify their backlink to point to your new website.
Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled
Yes, both home pages are an "index.html."
I`m 90% it`s Linux hosting - I use godaddy.
I`m at work right now, but when I get home I`ll try the code that you provided and check that it`s transferring in Ascii.
Yes, my new site is hosted in a subdirectory of my old site. I`ll try the code that you provided. If that, for some reason, doesn`t work, I`ll see if I can figure out how to change the DNS for the old domain.
Thanks for your help! I`ll report back.
I have a new site and want links that used to point to
My .htaccess is present and working, other code is working fine, just none of these redirects are working.
Redirect 301 http://www.mccormacks.net/dinner.html http://www.mccormacks.net/dinner_menu.php5
Redirect 301 http://www.mccormacks.net/sports.html http://www.mccormacks.net/index.php5
Redirect 301 http://www.mccormacks.net/beer.html http://www.mccormacks.net/bar.php5
Redirect 301 http://www.mccormacks.net/brunch.html http://www.mccormacks.net/brunch_menu.php5
Redirect 301 /lunch.html http://www.mccormacks.net/lunch_menu.php5