Posted - 10/17/2019 : 14:12:48
I have a similar issue. We have seo friendly urls installed but have to have an & symbol in the product name. How can I rewrite the product detail page to one which doesn't have the & symbol converted to %26?
In fact if I could convert #() to nothing, that would be great! For example a product name of A&M stone goes to A%26M-stone detail page. I'd like it to be am-stone or a-m-stone but still display the correct product name on the page.
My current htaccess rewrites are: [code]<IfModule mod_rewrite.c>
RewriteBase /
RewriteRule ^stone-category/([^/.]*)?$ /categories.php?cat=$1 [QSA,nc,L,B]
RewriteRule ^stone-products/([^/.]*)?$ /products.php?cat=$1 [QSA,nc,L,B]
#RewriteRule ^manufacturer/([^/.]*)/?$ /products.php?man=$1 [QSA,nc,L,B]
#RewriteCond $1 !\.(png|gif|jpg|ico|pdf|css|js|php|xml|html|htm)$ [NC]
RewriteRule ^([^/.]+)$ proddetail.php?prod=$1 [QSA,nc,L,B]
</IfModule>[/code]
Thanks in advance!
|