Joshua Slive wrote:
> Assuming you are using 2.x, you can use a negative-lookahead in the
> regex to match exactly anything other than robots.txt. But the effect
> will be the same.

Thank you so much, that's just what I'm looking for. Following your
advice, finally, I changed my httpd.conf like this:

  RedirectMatch permanent
                '^(/(?!robots\.txt$).*)$' 'https://www.example.com$1'

This works fine, and redirects exactly anything other than robots.txt.

Thank you.
Best Regards,
-- 
Hirotsuna Mizuno <[EMAIL PROTECTED]>

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to