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.
» Knowledgebase » WordPress Administration » Override Site URL in wp-config.php
Override Site URL in wp-config.php
Edit wp-config.php
Add these two lines to your wp-config.php, where “example.com” is the correct location of your site.
define('WP_HOME','http://example.com'); define('WP_SITEURL','http://example.com');Reference: https://codex.wordpress.org/Changing_The_Site_URL
UK WordPress Support
We are a team of UK based WordPress experts offering WordPress help & support, WordPress site management and maintenance, content management services, one to one WordPress training and consultancy.
Need to chat? Contact Us Now!
WordPress Maintenance
Let us manage your plugin and theme updates, keep your WordPress website site running smoothly and your visitors happy!
One to One WordPress Training
We provide one to one WordPress training to individuals and companies all over the World!
Whether you are developing new skills for business or working on a personal project, we can support you, and your first trial session is free!
WPHelpDesk Difficulty Rating
Simple All WordPress users should be able to manage this
Basic You’ll need to to be familiar with adding content to a WordPress website
Intermediate You’ll need to know your way around most of the WordPress dashboard and be familiar with installing themes and plugins.
Advanced You will need to be comfortable with all aspects of WordPress Administration including installing and configuring themes and advanced plugins
Expert You will need to be comfortable with coding, editing databases and other tasks that could permanently damage your website. Proceed with caution!
No rating applied yet
0 Comments