Forum Moderators: phranque

Message Too Old, No Replies

Redirect for HTTPS

         

jontlim

11:49 pm on Feb 2, 2012 (gmt 0)

10+ Year Member



We are currently using mod_rewrite to redirect /home to /

RewriteRule ^/home$ /$1 [NC,R=permanent]

But this does not seem to work for HTTPS.

Any ideas how we can get this working?

Cheers

g1smd

1:04 am on Feb 3, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Is that rule in htaccess or in http.conf? They each have slightly different syntax, and your rule can only work in one of them.

If you;re using code like this in .htaccess you will need to add a rule in the folder that HTTPS requests resolve to.

Your rule is way too simplistic. See previous threads as this is a topic discussed several times per month.