|
hi,
I would like to create some RewritingRules to have a friendly url in the navigator.
For exemple I have a page for all my new products filtered by categories
I have created a simple module accessible through :
http://www.mysite.com/newproduct?cat=3
But I would like to be able to write an url like :
http://www.mysite.com/new-product-categoriename-3.htm
So I tried to write a RewriteRule in my .htaccess :
RewriteRule ^new-product-categoriename-([0-9]+).htm$ newproduct?cat=$1 [L]
But it doesn’t work and go to the 404 page.
Then I tried to write :
RewriteRule ^new-product-categoriename-([0-9]+).htm$ http://mysite.com/newproduct?cat=$1 [L]
The page is accessible but in the navigator the url is http://www.mysite.com/newproduct?cat=3 although I would like it to be
http://www.mysite.com/new-product-categoriename-3.htm
I don’t know what can I do.
please help me
Cheers,
Mysth-R
|