Welcome to WebmasterWorld Guest from 54.198.118.102

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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 5, 2003
posts:807
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 1, 2002
posts:1424
votes: 0


(.*).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)

Senior Member

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

joined:Mar 31, 2002
posts:25430
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Aug 10, 2001
posts:1551
votes: 10


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.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members