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

I manually installed wordpress on my server and the wordpress files are located in "www.mydomain.com/wordpress/", however I wanted my "www.mydomain.com" to be the address for my wordpress blog instead of "www.mydomain.com/wordpress/" so I went to the "Settings->General" screen in my dashboard and changed the "Home" url to "www.mydomain.com/wordpress" and the "Site" url to "www.mydomain.com" thinking it would make my home address the blog address. When I went back to the admin page I get a "Not Found (404)" error message and all the CSS formatting is gone from my blog.

Is there a way to reset my settings?

share|improve this question
up vote 1 down vote accepted

If you've got access to the database (via phpMyAdmin or the like) you can change those two values in the wp_options table. Look for siteurl and home in the option_name column.

share|improve this answer
Thank you! I was going crazy over the whole affair. – user701510 Nov 9 '11 at 6:49

You can override the database setting in wp-config.php

define( 'WP_HOME', 'http://example.org' );  //<------This is what you want users to type into their browser to reach your site.
define( 'WP_SITEURL', 'http://example.org/wordpress' );  //<-------- This is where Wordpress is installed.
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.