httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Riela" ...@nesys.it>
Subject [users@httpd] Rewrite and ssl
Date Mon, 01 Dec 2003 12:19:47 GMT
Hi folks,

Problem: I would redirect all queries for http://www.domain.dom to
https://www.domain.dom

Resolution: I use the mod_rewrite in my virtual host www.domain.dom:80 
RewriteEngine on
RewriteRule    .* https://www.domain.dom

But, if I've a query for http://www.domain.dom/test.php (or /noindex.html),
the rule redirects to https://www.domain.dom/index.html

Then I've tried with
RewriteEngine on
RewriteRule    (.*)/(.*) https://www.domain.dom/$2

Now it works, but queries for http://www.domain.dom/*/* or
http://www.domain.dom/*/*/* doesn't work.
How could I redirect all traffic for http://www.domain.dom/allsubdir to
https://www.domain.dom/allsubdir ?

Thanks for support
Regards
Andrea


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message