You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Andrea Riela <ml...@nesys.it> on 2003/12/01 13:19:47 UTC
[users@httpd] Rewrite and ssl
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
[users@httpd] R: [users@httpd] Rewrite and ssl
Posted by Andrea Riela <ml...@nesys.it>.
>Did you try Redirect?
http://httpd.apache.org/docs-2.0/mod/mod_alias.html#redirect
>Redirect permanent / https://www.domain.dom/
I don't knonw why, but it doesn't work.
Could you send me an example with redirect non ssl --> ssl site with vh?
Thanks
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
Re: [users@httpd] Rewrite and ssl
Posted by Leander Jedamus <je...@Fh-Worms.de>.
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