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.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: