Force SSL on Apache - Slackware 11
Ok, I've been trying to set set up a server which it will use SSL. I've been having problems getting the mod_rewrite to work. I'm trying to force every connection to a certain directory to be on port 443 (SSL). I wrote a mod-rewrite.conf rule. It doesn't work. I have tried everything that I have found online, but no dice.
I have changed the AllowOverride "None" to "All" before the .htaccess section. The mod_rewrite module also loads correctly.
This is my sample mod-rewrite.conf file:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/my_directory/(.*) https://%{SERVER_NAME}/my_directory/$1 [R,L]
What am I doing wrong?
|