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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -