Sign in to follow this  

Apache, wildcard ssl, htaccess exclude certain subdomains

Recommended Posts

Limit-Studios    0

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?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.