Reputation: 9
I am new to htaccess and want to do following thing,
I want to rewrite url like,
http://example.com/test/test.php to http://example.com/test.html
and my htaccess file present in test folder. Can anyone help to find out this problem.
Thank You
Upvotes: 0
Views: 131
Reputation: 4424
That should do it:
RewriteEngine on
RewriteRule ^(.*).html$ test/$1.php [QSA]
Upvotes: 1