Removing File Extensions using .htaccess

Removing File extensions Using .htaccess

Most files in .htaccess are usually in either .php,html or. Asp language. Therefore the owner of a website may decide to remove these extensions to maybe improve in the SEO indexing or maybe improve the security because with the extensions the search is usually common.

 

 

How to remove the extensions

  • Login to the cpanel
  • Locate .htaccess in the file manager
  • Right click on it-click edit
  • On the far end below there is a rewrite section which shows the extension. In our case it shows phpMyAdmin

 

 

 

  • Edit by removing the .php then click save changes at the top right

Was this article helpful?

Related Articles

Leave A Comment?