httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noel Butler <noel.but...@ausics.net>
Subject Re: [users@httpd] rewrite to https website
Date Tue, 24 Apr 2012 11:41:11 GMT
On Tue, 2012-04-24 at 19:24 +0800, TianJing wrote:

> Hi all,
> 
> I have a question on apache rewrite, I have a https website: https://www.a.com
> 
> I want add another url(http://www.b.com),and this url will be forward
> to https://www.b.com
> 
> I using the rewite rules, but I seem doesn't work.
> 
> any suggestions?
> 


Just use a simple redirect
<VirtualHost *:80>
        ServerName www.b.com
        redirect  permanent /  https://www.a.com
</VirtualHost>


Mime
View raw message