Hallo Silvio,

<code>
[Wed Mar 8 11:49:07 2006] [alert] [client 84.60.0.117]
/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]).


frank



Spezifikationen
---------------

mod_rewrite unter Apache 1.3 benutzt POSIX regular expressions. Dazu habe ich gefunden (in http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html, 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:

http://perldoc.perl.org/perlre.html: 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 "]".

http://www.pcre.org/pcre.txt: 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 [EMAIL PROTECTED]
          sonstige Anfragen an [EMAIL PROTECTED]
--------------------------------------------------------------------------

Antwort per Email an