301 Redirect - Migrating to a new domain name AND update the website design (1 post)

  1. TwanPeeters
    Posted 1 year ago #

    Hi there!

    I have just migrated my website from twanpeeters.nl to twanpeeters.net, following all of the rules so keep my SEO results. I have now tried redirecting all of the links to my old domain to my new one, but not all of them are working.

    Here is the code I am using:

    Options +FollowSymlinks
    RewriteEngine on
    redirect 301 /  http://www.twanpeeters.net/
    redirect 301 /about  http://www.twanpeeters.net/about
    redirect 301 /portfolio  http://www.twanpeeters.net/portfolio
    redirect 301 /contact  http://www.twanpeeters.net/contact
    redirect 301 /portfolio/huiskamp-carosseriefabriek-100-jarig-jubileum  http://www.twanpeeters.net/portfolio/huiskamp-carosseriefabriek-100th-anniversary
    redirect 301 /portfolio/make-up-your-mind  http://www.twanpeeters.net/portfolio/winterswijk-park
    redirect 301 /portfolio/van-rossum-meubelen  http://www.twanpeeters.net/portfolio/van-rossum-meubelen
    redirect 301 /portfolio/seek-merry-hell  http://www.twanpeeters.net/portfolio/seek-merry-hell
    redirect 301 /portfolio/bartschillings  http://www.twanpeeters.net/portfolio/bartschillings
    redirect 301 /portfolio/offlinefilesharing  http://www.twanpeeters.net/portfolio/offline-filesharing
    redirect 301 /portfolio/industrial-machine  http://www.twanpeeters.net/portfolio/industrial-machine
    redirect 301 /portfolio/plein-44-timelapses  http://www.twanpeeters.net/portfolio/plein-44
    # 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]
    # END WordPress

    Of all the redirects only the links who have not a different link name are working correctly, such as http://www.twanpeeters.nl/about and http://www.twanpeeters.nl/portfolo/make-up-your-mind.

    However, the links on my new domain who have a different link do not work and I get a 404 error from those pages.

    I want to redirect http://www.twanpeeters.nl/portfolio/plein-44-timelapses to http://www.twanpeeters.net/portfolio/plein-44.

    The following code is not working:

    redirect 301 /portfolio/plein-44-timelapses http://www.twanpeeters.net/portfolio/plein-44

    This line of code does redirect the website to my new domain, but not the new link I specified. It actually just uses the old link but then on the new domain.

    Am I doing something wrong?

    I hope someone can help me!

    Best regards,

Topic Closed

This topic has been closed to new replies.

About this Topic