httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ImageCity/Hirotsuna Mizuno <h-miz...@imagecity.jp>
Subject [users@httpd] http to https redirection with an exception
Date Mon, 15 Oct 2007 00:55:51 GMT
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@imagecity.jp>


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message