httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julien Cigar <jci...@ulb.ac.be>
Subject Re: [users@httpd] How to redirect all requests for domain A to domain B
Date Mon, 19 Mar 2012 21:14:21 GMT
On 03/19/2012 21:53, Joe Hansen wrote:
> Hi All,
>
> I'd like to redirect all (http and https) requests for domain a.com 
> <http://a.com> to domain b.com <http://b.com>.
>
> I have the following in the apache config files:
> Redirect https:/a.com <http://a.com> https://www.b.com
> Redirect http://a.com http://www.b.com
>


You can also use the ServerAlias directive


> Though all the http requests are correctly getting redirected, https 
> requests aren't. What do I need to do to get this working?
>
> Thanks,
> Joe
>
>


Mime
View raw message