Basically my question is exactly this: redirecting http://www.subdomain.example.com to subdomain.example.com
We give all of our users a myusername.ourdomain.com link, the issue is when someone attempts to visit www.myusername.ourdomain.com our wildcard ssl gets broken and often the server will throw an error.
So the answer in the link I provided shows how to redirect a single www.apachedefined.mydomain.com I’m wondering how to use the same logic to do www.thiscanbeanything.mydomain.com.
Any help is greatly appreciated.
Try adding these rules to the very top of the htaccess file in your document root for the
www.*.mydomain.comvhosts: