Re: http to https redirection with an exception

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

 



joy d wrote:
> You can use mod_rewrite and define a RewriteCond for the except case.

Thank you for your appropriate advice.

Unfortunately, our Apache server was compiled without mod_rewrite, and
it's not allowed to re-compile it. Therefore, the following way is our
current candidate.

  RedirectMatch permanent '^(/|/[^r].*)$' 'https://www.example.com$1'

I know it's *really* dull approach. But it works at least with our site
while it has no resource starting with "r" except the "robots.txt".

Thank you a lot for thinking about this problem, and if someone has
other ideas, I hope to hear about that.

Thanks.
Best regards,
--
Hirotsuna Mizuno <h-mizuno@xxxxxxxxxxxx>


---------------------------------------------------------------------
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