I have a website where I show a catalog of products, which with the famous friendly url, transforms said url.
I have:
www.miweb.com/productos/Plancha-para-ropa-nghkdk23
And redirect to:
www.miweb.com/productos/productos.php?idproductos=302
My problem is when I try to see or follow the link of a product whose description has a period ( .
). Example:
www.miweb.com/productos/Telefono-android-5.0
Following the link, it gives me an error, but if I do this (I replace the .
with a -
) it works for me:
www.miweb.com/productos/Telefono-android-5-0
The issue is that I do not know how to modify the .htaccess so that the dot sign ( .
) replaces it with a hyphen ( -
)
Here is my current code:
RewriteRule ^prod/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ producto.php?id=$1 [NC,L]