dizyn
1
Hi,
I need help in Regular expression.
For:
http://test.example.com/MyPaper/Jobs-13-02-2011
I tried:
RewriteRule ^MyPaper/Jobs-([0-9][0-9]\\-[0-9][0-9]\\-[0-9][0-9][0-9][0-9]) /test.php?cat_id=1&date=$2&paper_id=1
But it did not work… help please?
Thanks
rpkamp
2
RewriteRule ^MyPaper/Jobs-[COLOR="Red"]([0-9][0-9]\\-[0-9][0-9]\\-[0-9][0-9][0-9][0-9])[/COLOR]
The part in red is $1, but you have $2 in the rule. Make that $1 and it should work 
Also, if test.php is in the same directory, drop the / in front of it.
dizyn
3
I tried it like like this but it did not work:
RewriteRule ^MyPaper/Jobs-([0-9][0-9]\\-[0-9][0-9]\\-[0-9][0-9][0-9][0-9]) /test.php?cat_id=1&date=$1&paper_id=1
Says page not found…
rpkamp
4
Does test.php exist?
And what did it say when you had $2 instead of of $1 ? Also “page not found” ?