Support » Fixing WordPress » Problem with a 301 redirect – is it needed?

  • Resolved mslogica


    Domain A:
    Domain B:
    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 (.*)$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 “”. 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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Kindly put this htaccess under Domain A.

    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} ^$ [OR]
    # RewriteCond %{HTTP_HOST} ^$
    # 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).

    This is fr domain B => domain A

    You will require Domain A => Domain B

    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem with a 301 redirect – is it needed?’ is closed to new replies.