Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I had a working installation of WordPress, and I recently encountered an issue where when I tried to login to the back-end, the browser would redirect to the login URL of the previous domain WordPress was installed on.

I fixed this by reinstalling WordPress, and I can now login to the backend, but any new posts I make, or old posts I have generate 404 errors.

Additionally, if I try to navigate to any category page, I again receive a 404 error.

I have looked at the wp_posts table of my database, and the GUID field each contains the correct domain name and URL structure.

What should I be checking here?

Site in question.

share|improve this question
up vote 3 down vote accepted

Try resaving your permalink structure (even if they seem correct). Sometimes when you are messing with wordpress, the htaccess file gets out of wack. I've had a similar issue to what you are describing and resaving the permalinks fixed the problem.

share|improve this answer
How do I do this? – Steve Mar 6 '11 at 12:57
Found out how to do it. – Steve Mar 7 '11 at 3:21

Check in the wp_options table for the option siteurl and make sure it contains the value of your new domain name.

share|improve this answer
siteurl is correctly set to the domain of my website. – Steve Mar 6 '11 at 12:55

Adding to this answer:

Could be permissions issues with your .htaccess file as well.

share|improve this answer

Clear every information on your MySQL database for wordpress and try reinstalling. It's possible the new database is conflicting with the old one.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.