.htaccess - How to remove url query string in htaccess -


i have url: http://www.example.com/?option=com_php&itemid=1&ep=3&lang=us

i want url: http://www.example.com/?ep=3&lang=us

how remove line option=com_php&itemid=1& in htaccess?

i have read many responses on subject , searched web, unfortunately no solution works. please me :)

put these lines in .htaccess file:

options +followsymlinks -multiviews rewriteengine on  rewritecond %{query_string} ^option=([^&]+)&itemid=([^&]+)&(ep=[^&]+)&(lang=[^&]+)$ [nc] rewriterule . %{request_uri}?%3&%4 [l,r] 

Comments