Re: How to redirect all requests for domain A to domain B

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey Mario,

Thanks so much for replying.

I found <VirtualHost *:443> line in the httpd-ssl.conf file. I added
Redirect / https://www.b.com

I restarted Apache but when I visit https://a.com, the browser doesn't redirect me to b.com. I am lost! :(

Thanks,
Shashi


On Mon, Mar 19, 2012 at 5:21 PM, Mario A. del Riego <delriego@xxxxxxxxxxx> wrote:
I must add this redirect to the VirtualHost's SSL.

You need to know where its added, if you type:

apachectl -S

will see something like:

[...]
*:443    is a NameVirtualHost
default server localhost (/etc/httpd/conf.d/ssl.conf:12)
[...]

In this file you have to do it.

Search for something "<VirtualHost *:443>" and add the redirect directive.

Redirect / https://www.b.com



El 19/03/12 17:53, Joe Hansen escribió:
> 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
>
> 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
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux