Hi everyone here.
I hope for any help to make a RewriteRule for my .htaccess file.
I need to redirect all urls with given mask to one file.
The initial address is: http://www.example.com/index.php?p=21-122-116
The mask is: index.php?p=21-122-116.
This mask (21-122-116) I need to pass to the target file.
Here is a rule I'm writting (I used PCRE standard for it):
RewriteRule index\.php\?p=([\d]{1,3})-([\d]{1,3})-([\d]{1,3}) uwrite.php?productid=$1&$2&$3
But it does not work :( Just no match.
I tried to play around with it but only this works:
RewriteRule index\.php uwrite.php?productid=$1
but any other additions after index\.php causes no match of the rule.
Please tell me where I'm wrong and how this have to look.
Thank you in advance..
[edited by: jdMorgan at 5:58 pm (utc) on Jun 9, 2010]
[edit reason] example.com [/edit]