httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Riela">
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

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

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message