Hi, You can use mod_rewrite and define a RewriteCond for the except case. > Date: Mon, 15 Oct 2007 09:55:51 +0900 > From: h-mizuno@xxxxxxxxxxxx > To: users@xxxxxxxxxxxxxxxx > Subject: http to https redirection with an exception > > 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: > ________________________________________________________________ > > RedirectMatch permanent '^(/.*)$' 'https://www.example.com$1' > > ________________________________________________________________ > > 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 > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See 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 > _________________________________________________________________ Connect to the next generation of MSN Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline --------------------------------------------------------------------- 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