apache2-ssl_rewrite.conf

  1. ### Handle forced redirect to SSL
  2. <VirtualHost *:80>
  3. <LocationMatch "^/folder/*">
  4. RewriteEngine on
  5. RewriteRule ^(.*) https://%{SERVER_NAME}/%{REQUEST_URI} [R,L]
  6. </LocationMatch>
  7. </VirtualHost>
  8.