My primary domain is currently constantly being redirected to www.mydomain.com (redirecting without www to www), with .htaccess as follows:
RewriteCond %{HTTP_HOST} ^mydomain.com$ RewriteRule ^/?$ "http\:\/\/www\.mydomain\.com\/" [R=301,L] RewriteCond %{HTTP_REFERER} !^http://mydomain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://mydomain.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com$ [NC]
I would like to know how all the subdomains that I will create, for example. blog.mydomain.com will be redirected to non-www, for example. blog.mydomain.com , not www.blog.mydomain.com . Each time I create a subdomain and enter the non-www URL into the browser, it requests a redirect cycle.
Hope you can help! Thank you :)
hello source share