Wordpress ReWrite SiteURL and Home Settings – wp-config.php

wp_options table has an option “siteurl” with url value from your site/blog and there’s the “home” option as well (for homepage url) !

If you move your WordPress blog to another domain, you can override this option by specifying it in the wp-config.php file, which replaces anything in the database:

define('WP_HOME', 'http://mynew-domain.test' );
define('WP_SITEURL', 'http://mynew-domain.test');

 

byrev Written by:

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *