WordPress: This website has a redirect loop

I got the following error in Chrome after transferring my WordPress install across servers:

“This website has a redirect loop”, and seemed to redirect to a url with the signup link.

On Firefox, the error was: “The page isn’t redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete. This problem can sometimes be caused by disabling or refusing to accept cookies.”

I tried the following:

  1. Clearing cookies.. Duh
  2. Setting the following permissions (recommended for the install. See Codex.)
    [[email protected]] /htdocs #find . -type d -exec chmod 755 {} \;
    [[email protected]] /htdocs #find . -type f -exec chmod 644 {} \;
    [[email protected]] /htdocs #chown -R vu2009.vu2009 *
    

    where vu2009 was my webserver user (See cat /etc/passwd)

  3. Finally, logged into phpmyadmin and found that I’d forgotten to import my database!

You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.