I have a site where I used http://example.com
, but if I change my site URL to http://example.co.uk
or http://examplesite.co.uk
which are all same site.
If I changed anything in the above urls it should override theme url.
Currently it is showing from the database value.
I used
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] );
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] );
define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'].'/');
but for theme &plugin url it is not working it shows http://example.co.uk
I want as http://example.com
if user types the same