• Well….i’m using wordpress on a blog, but i want to move it to a new domain. And, i want to make a complete redirect…. Eq:

    old.com/category1/first-post.html to
    new.com/category1/first-post.html

    I’ll put WordPress on the new domain, the xml file with posts, and i’ll put on the new blog the permalinks from the old blog…. And…i want to have the same results in google, with the new adress. All the links will be at same, just the domain will be different…. Any ideas ?
    I found on google tutorials about 301 redirect, but i didn’t find a way to redirect ALL old adresses to the new adresses….. Is it a solution to put into the WP header redirect this:
    <?
    Header( “HTTP/1.1 301 Moved Permanently” );
    Header( “Location: https://www.new.com&#8221; );
    ?>

    Replacinf, of course, new.com with my new adress….

    Please help ! Have a nice day !

Viewing 1 replies (of 1 total)
  • If you’re on a linux server, you can try doing a redirect using the .htaccess file.

    Try adding this to the top of your .htaccess file.

    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^old.com [NC]
    RewriteRule ^(.*)$ https://new.com/$1 [L,R=301]

    Apache mod_rewrite must be enabled for this to work.

Viewing 1 replies (of 1 total)
  • The topic ‘Complete redirect’ is closed to new replies.