Keeps on redirecting on my development copy

Usually, this is a problem with the Site URL or WordPress URL not being set properly. If you just copied the database, WordPress itself will try to redirect the domain back to what it thinks is the right site.

You have two options:

1. Edit the Settings

Use PHPMyAdmin or a similar tool to edit the site url and WordPress url settings in the database. This should fix the problem assuming nothing else on your development box is forcing the redirect.

2. Change your Hosts File

This is the better solution. Edit your hosts file to point http://clientsite.com at your local IP address (127.0.0.1). Then, just navigate to the development site the same way you would the production site. Just remember to change your hosts file back when you’re done developing.

Leave a Comment