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

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -