php - Should be a simple mod_rewrite rule -
this rule not seem functioning, cannot determine why, looks fine me:
rewriterule ^shop_en/proddetail.php?prod=(.+)$ /shop/product/$1 [l,nc,ne,r=301]
its not processed @ all, sites error message stating cannot find 'proddetail.php'.
which weird too, because on quick test tried following:
rewriterule ^shop_en/proddetail.php$ /shop/product [l,nc,r=301]
which worked fine. going on?
edit: product id's working can contain letters, numbers , dashes.
in simplest terms, convenient definitions:
i want route trying access:
www.domain.com/shop_en/proddetail.php?prod=333
to following url:
www.domain.com/shop/product/333
how can this?
try this
rewriterule ^/?shop/product/([a-za-z0-9\-]+)$ shop_en/proddetail.php?prod=$1 [l,nc,ne,r=301]
Comments
Post a Comment