apache - url rewrite in htaccess with variables -


I have a URL that can contain two elements: 1. Type 2. Location is not a URL formatting :
list-hotels-ai.php I would like to rewrite the URL with htaccess, but I've gone into a problem. Sometimes the URL will have: list-hotels-ai.php? C = Cancun OR list-hotels-ai.php? C = Cancun and T = Absolute

I wanted to rewrite url: list-hotels-ai.php? C = cancun to cancun-hotel.fp list-hotel-AE.PHP? C = Cancun and T = All-inclusive to all-inclusive- cancun- hotels.php

Does anyone know how to do this? Any help will be very much appreciated!

Create an HTML page that redirects using Javascript.

Comments