Re: rewrite to https website

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

 



i forget to open NameVirtualHost option....

so it donot work...

On Tue, Apr 24, 2012 at 7:52 PM, TianJing <jingtian.seu217@xxxxxxxxx> wrote:
thanks, but it doesn't work, i got a ssl error. and it do not  redirect to https://www.a.com

Inline image 1


On Tue, Apr 24, 2012 at 7:41 PM, Noel Butler <noel.butler@xxxxxxxxxx> wrote:
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>




--
Tianjing





--
Tianjing



[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