WordPress.org

Ready to get started?Download WordPress

Forums

Google friendly redirection (2 posts)

  1. baal666
    Member
    Posted 5 years ago #

    Hi,

    I moved from uhec.net to lelectronlibre.net and simply used domain pointed from the first one to the second one. But after testing on some site it seems this is not search engine friendly.

    I tried to modify .htaccess but it didn't work correctly.

    Here is my current .htaccss:

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

    I tried to add this

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://lelectronlibre.net/$1 [R=301,L]

    somewhere but it failed.

    Any idea how I can get the pagerank from my old site to my new site?

    Thanks!

  2. baal666
    Member
    Posted 5 years ago #

    Well I tried this:

    RewriteCond %{HTTP_HOST} ^.*uhec\.net$ [NC]
    RewriteRule ^(.*)$ http://lelectronlibre.net/$1 [R=301,L]
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    But I am not sure if it works... Any way it is all on the same server; only changed the name but kept the same server.

Topic Closed

This topic has been closed to new replies.

About this Topic