Reputation: 2561
I have test project folder called "prj". In that, I have one file called test.php.I want something like
http://localhost/prj/test.php?t=123
should be rewritten like
http://localhost/prj/test.php
any help will be appreciated
Upvotes: 0
Views: 84
Reputation: 964
Create a .htaccess file with:
RewriteEngine on
RewriteRule ^prj\/test.php$ prj/test.php?t=123 [NC]
Edit
If your htaccess file is located in the prj folder:
RewriteEngine on
RewriteRule ^test.php$ test.php?t=123 [NC]
Upvotes: 1