I want to protect a directory on my webserver using SSL. It should work like this: a request to "http://myserver.com/admin" should be transformed into "https://ssl-proxy.com/myserver.com/admin".
I´ve searched the web to achieve this but until now it did not work. With Mozilla I get an error "Redirection limit for this URL exceeded. Unable to load the requested age. This may be caused by cookies that are blocked."
Here is my .htacces for the folder "admin":
- Code: Select all
RewriteEngine On
RewriteRule ^/$ /index.php
RewriteCond %{SERVER_PORT} !443$
RewriteRule ^(.*) https://ssl-proxy.com/myserver.com/admin/$1 [R=301,L]
Can someone please point me to the right direction?
Thanks in advance.