I have several sites on one server but one the urls needs to be https.
for examples sake: http://www.example1.com/ https://www.example2.com/
i've been using htaccess to force https but it does it to ALL the urls essentially breaking all except that one URL i have a SSL cert for.
how can i force https on that one site?
You can use a double-condition in your htaccess:
- condition 1: check for
www.example2.com
only- condition 2: check for
http
requests onlyThis way, every
http
url fromwww.example2.com
will go tohttps
equivalent