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}/dash
Assuming there is additional URL coming after /dashboard when the server
sends you the login page...
e.g. /dashboard/login.php
...Your redirect will not match with the $ at the end of the condition...
RewriteRule ^/dashboard$ https://%{HTTP_HOST}/dashboard [R=301,L]
says /dashboard, so /dashboa
On Tue, Apr 16, 2013 at 10:07 AM, Igor Cicimov wrote:
> There shouldnt be empty line between these two.
>
Hi Igor,
In the conf file there isn't empty line between then:
RewriteCond %{HTTPS} !=on
RewriteRule ^/dashboard$ https://%{HTTP_HOST}/dashboard [R=301,L]
and I got the same problem after
On 16/04/2013 10:17 PM, "Felipe Roman" wrote:
>
> Hi Igor,
>
> Thanks for your help. I replaced the %{SERVER_NAME} by %{HTTP_HOST} but
the behavior continue the same. The redirect worked fine when I access
> http://myhost.com/dashboard I got redirected to
https://myhost.com/dashboard
>
> but after
Hi Igor,
Thanks for your help. I replaced the %{SERVER_NAME} by %{HTTP_HOST} but the
behavior continue the same. The redirect worked fine when I access
http://myhost.com/dashboard I got redirected to https://myhost.com/dashboard
but after the redirect the login page does not work anymore... even
RewriteRule ^/dashboard$ https://%{HTTP_HOST}/dashboard [R=301,L]
On 16/04/2013 7:58 AM, "Felipe Roman" 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
>
> h
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: