WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. 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

On my mac, I modified virtual host:

<VirtualHost *:80>
  DocumentRoot "/Users/me/Documents/github/gps_cms"
 ServerName gps_cms

That is so I can type gps_cms in url and invoke the web page on local host.

However, when i type in


in address bar, it redirects to my main site:


And the content on page is this:

No Update Required

Your WordPress database is already up-to-date!
share|improve this question
Have you checked your host file on the computer? – Jeremy Jared Jul 19 '12 at 19:38

WordPress will try to redirect you to the canonical URL for the site, as set in the database during the initial install. But you can override it in the wp-config.php file by setting the WP_HOME constant:


If WP is installed in a subdirectory, you might also need to set WP_SITEURL.

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.