I have tried the htaccess rewrite rule but it doesn’t work.
Due to the multisite setup, I need to add the domain as Alias (formerly known as Parked Domain) in cpanel. Then in the wordpress multisite site url, I will have to change it to the said domain.
Here’s the problem with wordpress multisite mapping:
If in site’s URL, I put it as http://subsite-domain.com (without www), it works perfectly, even if someone key in http://www.subsite-domain.com (with www), they will get 301 redirected properly to http://subsite-domain.com.
However,
if I put in site’s URL as http://www.subsite-domain.com (with www this time), then when someone key in http://subsite-domain.com (without www), instead of they get redirected to http://www.subsite-domain.com, they will get redirected to wordpress multisite primary domain, where I install wordpress multisite.
Anyone encounter such problem?