httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leander Jedamus <jeda...@Fh-Worms.de>
Subject Re: [users@httpd] Rewrite and ssl
Date Mon, 01 Dec 2003 12:43:29 GMT
Hi!

Am Montag, 1. Dezember 2003 13:19 schrieb Andrea Riela:
> 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 ?

Did you try Redirect?
http://httpd.apache.org/docs-2.0/mod/mod_alias.html#redirect
Redirect permanent / https://www.domain.dom/

HTH
Leander

-- 
Leander Jedamus
Presse- und Öffentlichkeitsarbeit
FH Worms
Erenburger Str. 19
67549 Worms
+49 6241 509-172


---------------------------------------------------------------------
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