How to stop subdomains automatically redirecting to primary domain
-
Hi,
I use Bluehost as my host, and I have just installed a GoDaddy wildcard SSL. My host has confirmed that it is set up correctly.Since installing the SSL, whenever I try to visit my subdomain https://secure.mydomain.com I automatically get redirected to my primary domain https://mydomain.com
How can i stop WP from automatically redirecting my subdomains to my primary domain?
I have added the following to my subdomins in the wp-config files:
define(‘FORCE_SSL_LOGIN’, true);
define(‘FORCE_SSL_ADMIN’, true);define(‘WP_HOME’,’https://secure.mydomain.com’);
define(‘WP_SITEURL’,’https://secure.mydomain’);I have also update the site URL and the WP URL in the general settings.
Is there anything I need to add or amend in the primary .htaccess file to stop the subdomains from redirecting?
Thanks
STAR_Rider
PS: Here is the URL of one of my subdomains. As you can see, it automatically gets redirected to the primary domain https://ezpbsupport.com !!!
https://secure.ezpbsupport.com
- The topic ‘How to stop subdomains automatically redirecting to primary domain’ is closed to new replies.