851 views 19 March 2020 1
It is possible to set the site URL manually in the wp-config.php file to override the database values. This is useful when syncing a database from the live site.
Add these two lines to your wp-config.php, where “example.com” is the correct location of your site.
587 views 19 March 2020 1
In some case, you may need to install WordPress in a subdirectory (eg /subdirectory/) but have it appear as though it’s in the root.
In Settings > General
WordPress Address: http://www.example.com/subdirectory
Site Address: http://www.example.com
Add .htaccess file to subdirectory
Place standard .htaccess file in the WordPress subdirectory and edit as follows:
# BEGIN WordPress