[resolved] Problem with a 301 redirect - is it needed? (5 posts)

  1. mslogica
    Posted 2 years ago #

    Domain A: http://www.mslogica.com
    Domain B: http://www.planetmillie.com
    Wordpress: 3.8.1
    Theme: Child theme of Twenty Twelve


    This week I have moved my website from domain A to domain B. The hosting remains on the same server, and the database is now linked to domain B.

    I have updated the URL in the WordPress dashboard. I have also updated my Google Webmaster Tools to the new URL. And finally, I have updated all the links within my blog posts to the new URL.

    I thought I needed to do a 301 redirect as well to accommodate all the old links on external sites, and added the following code to my htaccess file:

    # For security reasons, Option followsymlinks cannot be overridden.
    #Options +FollowSymLinks
    Options +SymLinksIfOwnerMatch
    RewriteEngine on
    RewriteRule (.*) http://www.planetmillie.com/$1 [R=301,L]

    However, when I now click on old links (hosted through external websites), I get the following error:

    Too many redirects occurred trying to open "www.planetmillie.com". This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.

    Have I got carried away? Do I not need the 301 redirect on top of everything else? Or is there an error in my process somewhere?

  2. The Grey Parrots
    Posted 2 years ago #

    Kindly put this htaccess under Domain A.

  3. mslogica
    Posted 2 years ago #

    Hi The Grey Parrots,

    I just went into the htaccess file to see what you meant, and I've just noticed that there is already a redirect code in place! It says this in the htaccess file at the bottom:

    # END WordPress
    # RewriteCond %{HTTP_HOST} ^planetmillie.com$ [OR]
    # RewriteCond %{HTTP_HOST} ^www.planetmillie.com$
    # RewriteRule ^/?$ "http\:\/\/mslogica\.com" [R=301,L]

    Just to clarify, does this mean I don't need to do a 301 direct??

    (I didn't write this code, it must have been written when I was making changes through my webhost control panel).

  4. The Grey Parrots
    Posted 2 years ago #

    This is fr domain B => domain A

    You will require Domain A => Domain B

  5. mslogica
    Posted 2 years ago #

    Hi The Grey Parrots,

    I don't really understand what you're telling me to do?

    I can't amend any files for Domain A, as it's now a parked domain and it doesn't have files linked to it?

Topic Closed

This topic has been closed to new replies.

About this Topic