| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|RewriteRule: cannot compile regular expression|
mod_rewrite error_log message.
| 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$'
| 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.
| 3:56 am on Aug 17, 2003 (gmt 0)|
I also recommend escaping the underscore. At the same time, there is usually no need to escape hyphens.
| 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.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved