Syntax error ??

Oh, the strange things mod_rewrite does!

Syntax error ??

Postby leinad49 » Thu Aug 21, 2008 4:17 am

Hi. I've put this in httpd.conf :

Code: Select all
RewriteCond %{HTTP_USER_AGENT} !.*bot.*
RewriteRule ^/.*/.*/.*/.*/.*/([a-Z]+)\.([0-9]+)\.html$ \
http://mywebsite.fr/F?func=find-b&request=$2&find_code=SYS&local_base=$1


But I got this error message each time I try to restart Apache :

Syntax error on line 313 of /etc/apache2/httpd.conf:
RewriteRule: cannot compile regular expression '^/.*/.*/.*/.*/.*/([a-Z]+)\\.([0-9]+)\\.html$'


Should somebody help me ? Thanks a lot.[/code]
leinad49
 
Posts: 1
Joined: Thu Aug 21, 2008 4:13 am

Postby richardk » Sat Aug 23, 2008 9:44 am

a-Z should be the same case (a-z or A-Z).
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Idiosyncrasies

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron