Posts: 173
Location: The Philippine Islands
|
RewriteRule /?q=comments&id=$ /news/([0-9]+)
The first parameter is a regular expression, (regex). Regex has characters
that have special meaning. Two such characters are the ? and the $.
The ? in called a quantifier and means 'zero or one'. The $ means 'end
here', so you are looking to match URLs that end with an equal sign.
Firstly, to nullify the special meaning of your ?, precede it with a backslash
like this \?
Next, drop the $ for now.
Now you have RewriteRule /\?q=comments&id=
and my question is how many digits could possibly show up after the
equals sign?
Bompa
|