View Single Post

  #1 (permalink)  
Old 07-30-2004
Bing
 
Posts: n/a
Default how can only one link on a site (http) be redirected to its https link?

Currently, most stuff on our web site can be accessed using http.
Now we want to redirecte only the logon link which involved user's
password on the site to https.
We know the URL for the logon link is
http://host.my.edu/app/index.php?opt...login&Itemid=1. If user
clicks the logon link, we want the URL to be changed to
https://host.my.edu/app/index.php?op...login&Itemid=1.

I added this in the httpd.conf file:

-------
RewriteEngine On
RewriteRule ^/app/index\.php\?option=com_login&Itemid=1$
https://host.my.edu/app/index.php?op...login&Itemid=1 [R,L]
--------

But the rewriterule took no effect. Anything wrong with the rewrite
rule? Any other better way to do it?

I would greatly appreciate any advices.

Bing