Is there a possibility to redirect requests for example.com/test to example.com/test.php for a particular file using .htaccess, leaving all other files/extensions intact?
3 Answers
You can try this : RewriteRule ^test$ /test.php [L] place it above your generic redirection written for all site url.
Like for example :
RewriteRule ^test$ /test.php [L] --page wise condition RewriteRule ^/?$ "http\:\/\/example\.com\/" [R=301,L] -- generic for site RewriteRule ^(.[^\.]*)$ index.php?$1 [QSA,L] -- generic for site