htaccess add www if not subdomain, if subdomain remove www
问题 I'm trying to make this - probably example would be the best, so: domain.com -> www.domain.com www.domain.com -> www.domain.com subdomain.domain.com -> subdomain.domain.com www.subdomain.domain.com -> subdomain.domain.com So if visitor is in subdomain, don't add www and when is set, remove It. Else if not in subdomain, add www. I tried to write something like this, but this doesn't remove www from subdomain adress :/ Also, if possible, I don't want to use domain and TLD domains but make it as