php - .htaccess remove extension for a single file -
is there possibility redirect requests example.com/test
example.com/test.php
particular file using .htaccess
, leaving other files/extensions intact?
you can try : rewriterule ^test$ /test.php [l]
place above generic redirection written site url.
like example :
rewriterule ^test$ /test.php [l] --page wise condition rewriterule ^/?$ "http\:\/\/example\.com\/" [r=301,l] -- generic site rewriterule ^(.[^\.]*)$ index.php?$1 [qsa,l] -- generic site
Comments
Post a Comment