301 Redirect Help Needed

Discussion in 'Apache' started by LN2, Feb 17, 2012.

  1. #1
    Hi,

    I recently bought a new domain name and copied my WordPress files from the root of my hosting account to a sub-directory. The original site is still live on the root, but now that the new site is set up in a sub-directory with the new domain name, I'm looking to use 301's to redirect traffic from the old domain to the new one at page-level.

    It was my understanding that I could just use Redirect 301 /the-old-page-name mynewdomain/the-new-page-name in .htaccess

    However, I get a message in my browser that says "The web page has resulted in too many redirects"

    What is the correct way to do this?

    Thanks,

    Jason
     
    LN2, Feb 17, 2012 IP
  2. samirj09

    samirj09 Well-Known Member

    Messages:
    335
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    125
    #2
    With WordPress, the site url and home url is located in the database. You must update this manually using phpmyadmin if you move the site. A 301 redirect will not work. You can see http://codex.wordpress.org/Moving_WordPress for more details. Feel free to send me a PM if you need help with this.
     
    samirj09, Feb 19, 2012 IP