hide .php extension in url

  • Answered
I want to send people directly to a particular page, but do not want to have to include the .php extension in the address. For example, doncoltrane.com/chaplaincy rather than doncoltrane.com/chaplaincy.php

How can I do that?
Hello Donniec,

In order to be able to set a link without a file extansion, such as domain.com/phpinfo instead of domain.com/phpinfo.php you simply need to add the following line of code to the top of your .htaccess file:

Options +MultiViews

This will allow you to make the links without the extensions. Be advised this is for cosmetic purposes only and does not enhance the security of the file or the website by using this technique.

I hope this answers your question. If you have any further questions, please leave a comment below.

Thank you!
- Scott M.