php - htaccess rewrite url parameter -
i want redirect
to
but don't know how...
you can use code in /myproject/.htaccess
file:
rewriteengine on rewritebase /myproject/ rewritecond %{query_string} ^supplier=([^&]+) [nc] rewriterule ^/?$ ?product_cat=%1 [l,r=301]
Comments
Post a Comment