Log in to your blog.
Go to the Administration > Settings > General panel.
In the box for WordPress address (URI): change the address to the new location of your main WordPress core files.
In the box for Site address (URL): change the address to the new location, which should match the WordPress (your public site) address (URI).
Click Save Changes.
(Do not try to open/view your blog now!)
Move your WordPress core files to the new location. This includes the files found within the original directory, such as http://example.com/wordpress
, and all the sub-directories, to the new location.