This is a must-use plugin to fix your uploads paths (URL & directory), for advanced paths customization for your wordpress intallation.
- WordPress is installed at /wp subdirectory.
//wp-config.php
define('WP_HOME', 'http://example.com');
define('WP_SITEURL', 'http://example.com/wp');