Forum Moderators: phranque
With Apache I basically have this:
RewriteRule ^news/([0-9\]+)$ index.php?section=news&news_id=$1 [L]
Installing Apache2 I receive this error:
.htaccess: RewriteRule: cannot compile regular expression '^news/([0-9\\])$'
The only thing I got o work was the following:
RewriteRule ^news/(.+)$ index.php?section=news&news_id=$1 [L]
Is this correct?
Regards,
- Michaelsen
RewriteRule ^news/([0-9]+)$ index.php?section=news&news_id=$1 [L]
If it was your intent to accept a backslash as part of the character group (in addition to characters 0 through 9), then the correct notation would be "[0-9\\]+"
Jim