How to Remove .html/php from your URL in Web Design/Development.

  1. Log on to your control panel, navigate to your File manager
  2. Go to your root folder
  3. Click settings, and enable show hidden files.
  4. Open the .htaccess file and edit it by adding the following codes in itRewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([^\.]+)$ $1.html [NC,L]
  5. If the file is not available, create one and save it as .htaccess on the root directory of your domain, then paste the code above inside it.
  6. Finally, remove .html extension from all the links on your domain. Warning: Do not rename files and remove .html, what you should only do is to remove the .html extensions from all the links on the site.