Question : file extension problem

Hello,

I'm using htaccess rules to rewrite the urls, for example :

RewriteRule ^product.html$ product.php?product_id=1

so this page will be open in brower by http://www.domain.com/product.html for example. Now the problem is if I replace dot(.) in product.html with any special characters like product-html OR product,html etc, its still openning... actually it should open up with dot(.) only as specified in rewrite rule.

Any idea, how to fix this problem?

Thanks

Answer : file extension problem

It's been awhile but you may have to escape the "." so that it's read literally.

RewriteRule ^product\.html$ product\.php?product_id=1
Random Solutions  
 
programming4us programming4us