I have a strange problem, where if I write a rule to match any character (.*), firebug throws up a javascript syntax error.
The rule I have is:
RewriteRule ^news/story/(.*)? index.php?page=viewNews&story=$1 [L,NC]
The error that appears is:
syntax error
[Break On This Error] <!DOCTYPE html PUBLIC "-//W3C//DTD XHT.../xhtml1/DTD/xhtml1-transitional.dtd">
If I change the rule to be:
RewriteRule ^news/story/(\d+)? index.php?page=viewNews&story=$1 [L,NC]
It works fine, but only for numbers obviously. I want it to work for text as well, hence the wildcard.
If I go to the index.php?page=viewNews&story=test+story page directly, it works fine.