• 0

Apache, wildcard ssl, htaccess exclude certain subdomains


Question

I have just purchased my first wildcard SSL for my web application.

 

I have set up a virtual host for the wildcard SSL with app.mydomain.tld and *.mydomain.tld for user's to create custom subdomain names.

 

Currently when accessing www.mydomain.tld and forums.mydomain.tld under SSL it brings the app website which is from the *.mydomain.tld virtual host. In htaccess how can I prevent SSL access for www.mydomain.tld and forums.mydomain.tld as I only want these available as non-SSL, and if accessed under SSL to be redirected back to the non-SSL version (I understand this would have to go in the *.mydomain.tld virtual host htaccess file).

 

Any help would be great as not having much luck at the moment?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.