httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Cicimov <icici...@gmail.com>
Subject Re: [users@httpd] Redirect HTTP to HTTPS does not work (mod_rewrite)
Date Mon, 15 Apr 2013 22:19:57 GMT
RewriteRule ^/dashboard$ https://%{HTTP_HOST}/dashboard [R=301,L]
On 16/04/2013 7:58 AM, "Felipe Roman" <roman.felipe@gmail.com> wrote:

> 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
>

Mime
View raw message