title: Hiding File Name From URL
body: <p>Can you please let me know how I can hide a Page name from URL in PHP or HTML? For example if I have something like: </p>
  
  <pre><code>www.mydomain.com/about.html
  www.mydomain.com/project.html
  www.mydomain.com/contact.php
  </code></pre>
  
  <p>only be shown as:</p>
  
  <pre><code>www.mydomain.com
  </code></pre>
  
  <p>I already saw this trick using</p>
  
  <p>Add the following to your <code>.htaccess</code> file:</p>
  
  <pre><code>#######
  #Allow PHP/HTML pages to load without the filename extension
  ######
  RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}\.php -f
  RewriteRule ^(.*)$ $1.php
  RewriteCond %{REQUEST_FILENAME}\.html -f
  RewriteRule ^(.*)$ $1.html
  </code></pre>
  
  <p>but this only removes the extensions. Thanks </p>