Posted by:
notaplayer83
(---.84.205-100.dyn.dsl.cantv.net)
Hi
How can I force Apache to use SSL on a single page? I have this at the moment:
<VirtualHost :*80>
ServerName localhost
DocumentRoot C:/wamp/www
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} index.php
RewriteRule (.*) [
]%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>
but instead of redirecting me to the https it shows me this message that says forbidden and I have to manually go to the hettps version of index.php
What I'd like is to force some pages to use https and force other ones to use http.
Thanks in advance.
R.
I'm editing cause it shows a different thing when I post, where you see [] in the rewriterule it says "h t t p s : / /"
Edited 3 time(s). Last edit at 07/27/2010 05:18PM by notaplayer83.