Welcome to WebmasterWorld Guest from 23.22.79.235

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

RewriteRule: cannot compile regular expression

mod_rewrite error_log message.

   
1:25 am on Aug 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What does this error_log message mean?

[Sun Aug 17 00:23:59 2003] [alert] [client XXXXXXXXXXXX] /directory/directory/directory/.htaccess: RewriteRule: cannot compile regular expression '^file\-locale\-(.*)\-mode\(.*)\-page_num\-(.*)\-node\-(.*).html$'

1:45 am on Aug 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



(.*).html should be (.*)\.html

cause what you have is (.*) any number of characters and right after that . as any character, so "any number of characters + any character" does not make sense.

3:56 am on Aug 17, 2003 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Jesse_Smith,

I also recommend escaping the underscore. At the same time, there is usually no need to escape hyphens.

Jim

10:44 am on Aug 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I also recommend escaping the underscore.

Um, and what's that supposed to be good for? As far as I'm aware of, underscores have no special meaning in RewriteRules.