how to rewrite url for this query string url in htaccess

I have tried many rewrite rules for the following url but i didn’t get any success.I researched a lot and wasted my 2 days.

I need this url to be like this
I need to rewrite url from

http://localhost/tour/tour.php?page=golden-triangle-tour

to

http://localhost/tour/tour/golden-triangle-tour

Please guide me to fix this in htaccess.


Source: apache

Leave a Reply