301 Redirect

thedarkest12

Regular Member
Joined
Nov 23, 2009
Messages
476
Reaction score
127
Hi all,

Could someone let me know the 'most' effective method to quickly redirect ALL pages from one domain to a new domain (index page only).

Thanks!!
 
in your .htaccess file in the root directory, make it this:

Code:
# This allows you to redirect your entire website to any other domain 
Redirect 301 / (url goes here)

or set up a missing.php in your .htaccess file and put in a header redirect in there to the new site.


 
TheDaemon, thanks.

So I had this code in here, is this too elaborate, or not going to redirect the link juice...

.htaccess

Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.mynewsite.com/$1 [R=301,L]
 
Sorry for my nood question, is the ranking of your site hurt after changing to this? how about the previous backlinks?
 
did you mean all pages on old domain exist in new domain or only simple redirect?
 
Last edited:
As long as you do 301s, you should be fine. I don't believe that Google lessens the backlink due to a proper 301 redirect. Mine will redirect to the root, thedarkest's redirect will preserve the file structure.

You can add an .htaccess file by just adding a file named .htaccess file to your root directory. Depending on your server configuration, this should be sufficient.
 
Great, thanks, this gives me a lot of confidence that the link juice is pumping now to the new site :D
 
Is it possible to redirect to a sub domain and still keep the link juice??
 
Back
Top