Re: Redirect HTTP to HTTPS does not work (mod_rewrite)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Solved :-)

Actually the problem was not in this dashboard new rule, the problem was in one of the previous rules that was skipping my new rule in some cases.

So after I changed the rule order the final solution is:

RewriteCond %{HTTPS} !=on
RewriteRule ^/dashboard$ https://%{HTTP_HOST}/dashboard [R=301,L]
 
Thanks everyone


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux