Help with 301 redirect in Wordpress so it pass all the Link power to a new domain!

5 replies
  • WEB DESIGN
  • |
I just have uploaded all the content from the old site to a new domain, both wordpress based and now would like to do 301 redirect from an old domain to a new domain, so all the link juice/power will be passed to a new domain, how would I do so, I can't seem to find anything legit on google, my currect settings in .htacess is:


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>


# END WordPress

what do I need to add here so it redirects to a new site? Thank you much in advance!

redirect done in any way passes the link juice or no?
#301 #domain #link #pass #power #redirect #wordpress
  • Profile picture of the author Ashera
    Originally Posted by smolodoy View Post

    I just have uploaded all the content from the old site to a new domain, both wordpress based and now would like to do 301 redirect from an old domain to a new domain, so all the link juice/power will be passed to a new domain, how would I do so, I can't seem to find anything legit on google, my currect settings in .htacess is:


    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>


    # END WordPress

    what do I need to add here so it redirects to a new site? Thank you much in advance!

    redirect done in any way passes the link juice or no?
    You can do this easily through almost any registrar if you want to avoid any technicalities, just go to manage domain and choose permanent redirect and type in the new url. If you are using Google webmaster tools make sure to let them know as well.
    Signature
    If you don't change direction, you'll end up where you're going.
    {{ DiscussionBoard.errors[6142331].message }}
  • Profile picture of the author pinterest01
    i do this for my old domain name:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://olddomainname/ [R=301,L]
    Signature
    Visit My Portfolio | Hire me $10/Day | I'l setup your website, blog, ecommerce site, web 2.0 for FREE!* (PM for Details)
    {{ DiscussionBoard.errors[6142726].message }}
  • Profile picture of the author smolodoy
    so bascially it should look like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://www.olddomainname.com/$1 [R=301,L]
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    {{ DiscussionBoard.errors[6152825].message }}
  • Profile picture of the author pamb10
    You should not need to code this in your htaccess file. Go to your domain registrar and select the redirect option there.
    {{ DiscussionBoard.errors[6152908].message }}
    • Profile picture of the author Alice R
      Originally Posted by pamb10 View Post

      You should not need to code this in your htaccess file. Go to your domain registrar and select the redirect option there.
      Yes, and remember that the htaccess file will more than likely be invisible. You will have to check the "view hidden files and folders" option
      {{ DiscussionBoard.errors[6154549].message }}

Trending Topics