apache - mod_rewrite not working correctly locally -
i have following lines in .htaccess:
rewriteengine on rewritebase /new options +followsymlinks options -indexes #shopping redirects rewriterule ^shopping-bag?$ cart.php rewriterule ^checkout?$ checkout.php rewriterule ^product/([^/\.]+)/?$ product.php?fine_leather=$1 [nc,qsa,l]
now, of works great on production server, (last line appear http://www.domain.com/product/this-is-a-product) locally, first 2 lines work fine last doesn't. doesn't seem passing variable :(
any ideas/suggestions fix this? need pretty url's fixed don't want work on server until know working correctly.
try code :
rewriterule ^shopping-bag?$ cart.php [l] rewriterule ^checkout?$ checkout.php [l] rewriterule ^product/(.+)$ product.php?fine_leather=$1 [nc,qsa,l]
Comments
Post a Comment