i use .htaccess and i have a rule that allow me to dynamically look for product in my database.
so someone can click on a link like this one:
www.domain.com/product/modular-plastic-lunch-set.html
and see the product. Now my problem is, when i use
www.domain.com/product/Modular-Plastic-Lunch-Set.html
it does not work,
why? here's my rules:
RewriteEngine On
RewriteRule ^product/([a-z0-9\-]+).html$ products.php?name=$1
Source: Tips4all
You're only looking for lower case letters (and numbers). You need to add upper case letters.
ReplyDeleteRewriteEngine On
RewriteRule ^product/([A-Za-z0-9\-]+).html$ products.php?name=$1