There was a problem loading the comments.

How do I remove file extensions?

Support Portal  »  Knowledgebase  »  Viewing Article


If you would like to remove the ending extensions for your files such as; .html, .php, .htm, and so forth, this can be done quite simply using the following steps:

Developer Note: this is a feature that you will be using .htaccess files to turn on the mod_rewrite engine feature within your hosting.

1. Open Notepad (or text editor)

2. Add the following code:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php [L,QSA]

3. $1.php Replace with your preferred extension (You might need to replace this value with whatever extension you are looking to get rid of e.g. $1.html)

4. Save as .htaccess

5. Upload to your server's public_html folder

Developers Note:
* Please note that this function is provided by us. However, is officially unsupported, and testing of this is at your own risk.
* Should you have any questions, please let our support department know.
* We HIGHLY advise that you do backups of your .htaccess file before uploading the updated one.

Share via
Did you find this article useful?  

Related Articles


Add Comment

Replying to  

Self-Hosted Help Desk Software by SupportPal