http to https redirection with an exception

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

 



Hi, all.

I'm currently using the RedirectMatch(mod_alias) directive to redirect
all HTTP requests to corresponding HTTPs urls. My current httpd.conf is
like this:
   ________________________________________________________________
   <VirtualHost *:80>
      RedirectMatch permanent '^(/.*)$' 'https://www.example.com$1'
   </VirtualHost>
   ________________________________________________________________

This works fine, and redirects all HTTP requests without exception.

In addition to this, there is a new condition. I'm trying to redirect
all requests except "/robots.txt", but I can't find way to do this. Is
there any good way to do this?

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