Redirect HTTP to HTTPS does not work (mod_rewrite)

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

 



Hi,

I'm trying to configure a specific application (developed in Python/Django) to run only through HTTPS, what I need is redirect a specific directory to HTTPS:

FROM

http://myserver.com/dashboard

TO

https://myserver.com/dashboard

I created some redirect rules on apache httpd.conf like that:

RewriteCond %{HTTPS} !=on

RewriteRule ^/dashboard$ https://%{SERVER_NAME}/dashboard [R=301,L]

The redirect from HTTP to HTTPS is working fine... but after redirected to the HTTPS address the login page does not work anymore... looks like the POST parameters are missing… if I comment my redirect rules everything works fine again

Has anyone have any idea if I forgot any step to do that ? Other ideas ?

I also tried to use http://wiki.apache.org/httpd/RedirectSSL

But I don't have a VirtualHost I need to do this redirect in a directory only.

Any ideas ?

Thanks in advance, 

-- 

Best Regards,
Felipe Roman
LinkedIn http://au.linkedin.com/in/feliperoman

[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