• Resolved Ewan24

    (@ewan24)


    Hi there,

    I have a website which im moving to a new domain (both the original and new domain are on the same host)

    However my original domain has a good ranking on google… I was just wandering whats the best way to redirect to the new domain without loosing page rank?

    I have cpanel on my web host and they a redirect function there …which works fine …however im not too sure if this is a good way to do it ?

    Or whether I should use a redirect plugin with wordpress ?

    Sorry Im relatively new to this

    any suggestions would be very much appreciated 🙂

    Ewan

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I’m not using cpanel so this might not be the best advice. This only works if your new domain is on the same host and you are using Apache2 vhosts. Also your new domain and old domain need to be in separate directories on your server.

    If you are running Apache2 with vhosts and mod_rewrite then in your old directory rename .htaccess to .htaccess-old (saving backups are your friend) and create a new .htaccess file with this in it

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule (.*) http://new.domain.com/$1 [R=301,L]
    </IfModule>

    If your new domain is in directory then change http://new.domain.com/$1 to http://new.domain.com/directory/$1

    Thread Starter Ewan24

    (@ewan24)

    thanks for the suggestion

    is this better then just using my cpanel to do a 301 permanent redirect?

    On google Im not to sure if it is a good idea to use the tool where you notify them of a change of address …. surely I want to leave my old website behind if it has a load of 404 page not found ? then I can just start my new domain as a brand new site?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘how to 301 redirect ?’ is closed to new replies.