I have a wordpress site that i want to run 2 hosts with 2 different domains.
Site in the first host with the domain example1.com works correctly but in the second host domain example2.com redirect to example1.com domain.
There is no set redirect in the .htaccess file.
DNS of each of the 2 domains are set up correctly.
My question is how should I get it which part of the program code is this redirects ?
home
andsite_url
are correct? Try adding to thewp-config.php
file of example2.com wordpress:define('WP_HOME','http://example2.com'); define('WP_SITEURL','http://example2.com');