You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by patrick kuah <pa...@msn.com> on 2003/10/15 06:11:57 UTC
[users@httpd] rewrite module question
Hi guys...
I need to do a URL redirection (http to https). Example, http://www.foo.bar
to https://www.foo.bar
How am i going to do that???
Currently, my rewrite module config are...
Rewrite /* https://www.foo.bar , this will redirect whatever http traffic
to https://www.foo.bar. I got other virtual host that need redirection
also...
Thanks for all the help
patrick
_________________________________________________________________
Find it on the web with MSN Search. http://search.msn.com.sg/
---------------------------------------------------------------------
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 module question
Posted by Robert Andersson <ro...@profundis.nu>.
patrick kuah wrote:
> I need to do a URL redirection (http to https). Example,
http://www.foo.bar
> to https://www.foo.bar
> How am i going to do that???
> Currently, my rewrite module config are...
You do not use mod_rewrite. Instead you do:
<VirtualHost 1.2.3.4:80>
ServerName www.foo.bar
Redirect / https://www.foo.bar/
</VirtualHost>
<VirtualHost 1.2.3.4:443>
ServerName www.foo.bar
...
</VirtualHost>
Regards,
Robert Andersson
---------------------------------------------------------------------
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