Hi!
I've been trying to redirect a page to a secure SSL connection when a user types http:// instead of https:// but so far I still keep getting a Server Error! Error 500 message. My configuration files are as follows:
TO ALLOW FOR MOD_REWRITE (httpd)
------------------------
<Directory "C:/xampp/htdocs">
Options +FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
TO SECURE SSL ON FOLDER (httpd)
-----------------------
<Directory "C:/xampp/htdocs/login/SSL/">
SSLRequireSSL
</Directory>
And finally my .htaccess file is as follows:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} SSL
RewriteRule ^(.*)$ https://localhost/login/SSL/$1 [R,L]
Now, I've implemented mod_rewrite for another page so I know that for sure works. Also, without the .htaccess file in "C:\xampp\htdocs\login\SSL" I get a message that Access is forbidden to that page (which is actually index.php) thus illustrating that SSL has been secured for the named folder. I've saved the .htaccess file in "C:\xampp\htdocs\login\SSL" and so am thinking I've done everything correctly but the error keeps being diplayed. Can someone aid me in correcting the error in my logic, Thanks.