I have my Wordpress installation located in "webroot/example.com/WP" folder.
Currently, http://example.com shows a 404 page not found error.
However, http://example.com/WP loads the Wordpress site. In the
Settings->General area, I have both Wordpress URL and Site URL set to http://example.com/WP
Now, I would like to change only the Site URL to http://example.com so that that is the URL that people enter to visit the site.
I tried logging into phpMyAdmin and editing the 'home' field to http://example.com
However, the result is the same.
I followed the instructions given in the Wordpress Codex but to no avail.