Re: [users@httpd] Problem redirecting http to https

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

 



Jignesh Badani said:
> We have a similar problem.
>
> We have always been doing it the Virtual host way (virtual on port 80
> redirects (permanant) to virtual on 443). In my Virtual host for port 80,
> I have:
>
> Redirect permanent      /       https://www.mysite.com/home/index.htm

This should be RedirectPermanent / https://www.mysite.com/

What RedirectPermanent (or Redirect permanent) basically does is replacing
the first argument with the second, even if something comes behind it. So
in your rule, /foo/bar is changed to
https://www.mysite.com/home/index.htmfoo/bar (replacing the leading / with
the replace-pattern).

Joost


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-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