Help on mod_rewrite and SSL needed

New to mod_rewrite? This is a good place to start.

Help on mod_rewrite and SSL needed

Postby django » Thu Jul 22, 2004 3:27 am

Hello,

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.
django
 
Posts: 1
Joined: Thu Jul 22, 2004 3:15 am

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 51 guests

cron