apache2-ssl_rewrite.conf
- ### Handle forced redirect to SSL
- <VirtualHost *:80>
- <LocationMatch "^/folder/*">
- RewriteEngine on
- RewriteRule ^(.*) https://%{SERVER_NAME}/%{REQUEST_URI} [R,L]
- </LocationMatch>
- </VirtualHost>
- ### Handle forced redirect to SSL
- <VirtualHost *:80>
- <LocationMatch "^/folder/*">
- RewriteEngine on
- RewriteRule ^(.*) https://%{SERVER_NAME}/%{REQUEST_URI} [R,L]
- </LocationMatch>
- </VirtualHost>