php - htaccess rewrite url parameter -


i want redirect

http://localhost:8080/mypproject/?supplier=test123

to

http://localhost:8080/myproject/?product_cat=test123

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

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -