httpd-users-de mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Thommen <>
Subject Re: Apache Mod-Rewrite
Date Fri, 10 Mar 2006 11:24:19 GMT
Hallo Silvio,

> <code>
> [Wed Mar 8 11:49:07 2006] [alert] [client]
> /var/www/web1/html/.htaccess: RewriteRule: cannot compile regular
> expression
> '^detailseite,([.,-a-zA-Z0-9]+),([0-9]+),([0-9]+),([0-9]+),([0-9]+),([a-zA-Z0-9]+).htm$'\n
> </code>

Moeglicherweise ist der erste Term in eckigen Klammern das Problem. 
Genauer das erste '-', welches wahrscheinlich als Teil eines Range 
interpretiert wird, was nicht funktioniert (siehe die Ausschnitte aus 
den Spezifikationen unten). Versuch mal das erste '-' zu escapen 
([.,\-a-zA-Z0-9]) oder an den Anfang zu nehmen ([-.,a-zA-Z0-9]).



mod_rewrite unter Apache 1.3 benutzt POSIX regular expressions.  Dazu 
habe ich gefunden (in, 
Abschnitt "9.3.5 RE Bracket Expression"):

The hyphen character shall be treated as itself if it occurs first 
(after an initial '^', if any) or last in the list, or as an ending 
range point in a range expression.

mod_perl unter Apache 2.x benutzt Perl Regular Expressions:  If you want either "-" or "]" 
itself to be a member of a class, put it at the start of the list 
(possibly after a "^"), or escape it with a backslash. "-" is also taken 
literally when it is at the end of the list, just before the closing "]". If a  minus  character  is  required  in a 
class,  it  must  be  escaped  with a backslash or appear in a position 
where it cannot be interpreted as indicating a range, typically as  the 
first or last character in the class.

                Apache HTTP Server Mailing List "users-de" 
      unsubscribe-Anfragen an
           sonstige Anfragen an

View raw message