On 10/15/07, ImageCity/Hirotsuna Mizuno <h-mizuno@xxxxxxxxxxxx> wrote: > 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. 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. Joshua. --------------------------------------------------------------------- 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