Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2014
    New Delhi, India, India

    How to remove .php from url?

    Dear Friends,

    Please help me.

    I want to remove .php From url.
    .php replace with .html

    Thank You.

  2. #2
    Join Date
    Aug 2014
    Athens, Greece
    You can do it with modrewrite.

    In your .htaccess file write this :

    RewriteEngine On
    RewriteRule ^Profile.\html$ profile.php [L]
    RewriteRule ^Contact.\html$ contact.php [L]

    Of course you can do it your pages/names you want!

  3. #3
    Registered User
    Join Date
    Jan 2014
    You have to add the following code:

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME}\.php -f
    RewriteRule ^([^\.]+)/$ $1.php

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting

Premium Partners:

Visit to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.