i want to display the this url
http://localhost/project/sites/sample/cat.php?typ=Politics
to like this
http://localhost/project/sites/sample/Politics.html
and my htaccess code is
RewriteEngine on
RewriteRule (.*)\.html$ cat.php?typ=$1
it's working when i was gave the url manually on browser, but the url was not loaded dynamically. i want to show the second url dynamical if i click the first url. thank you to help