I have a vhost running on 443 and 80. On the 80 vhost I have a rule like this.
Redirect permanent / https://localhost
I am testing serving a static page in /autos and I want this traffic to not use the redirect rule, i want this page to be served from the 80 vhost without SSL. So i tried setting a RewriteCond and then A RewriteRule for the cond.
RewriteCond %https://localhost !/autos$
RewriteRule !^/var/www/autos - [C]
this is not working cause im likely doing it wrong. Any tips?
I'm using two vHost definitions - one for http and one for https. for plone I use this:
but perhaps in the https-vHost this ist sufficent too:
hth
You have to possibilities:
1) Set up a redirect on you Port 80 VirtualHost that ignores the subfolder autos:
Note: This does not keep the path in the URL. So http://your-domain.ain/path/to/sth will be redirected to https://your-domain.ain/.
2) IMO the better Solution would be to create a own VirtualHost for the subfolder autos.
You can find further information on Apache VirtualHosts and some examples in the Apache Manual.
EDIT: For the seperate VHOST you'll need to use NameVirtualHost. Make sure you have the following Entries in your Apache conf: