homepage Welcome to WebmasterWorld Guest from 54.167.144.202
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
RewriteRule: cannot compile regular expression
mod_rewrite error_log message.
Jesse_Smith

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 337 posted 1:25 am on Aug 17, 2003 (gmt 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$'

 

bcc1234

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 337 posted 1:45 am on Aug 17, 2003 (gmt 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.

jdMorgan

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



 
Msg#: 337 posted 3:56 am on Aug 17, 2003 (gmt 0)

Jesse_Smith,

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

Jim

bird

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 337 posted 10:44 am on Aug 17, 2003 (gmt 0)

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved