title: How to map URL with .htaccess
body: <p>My local site have project folder <code>http://127.0.0.1/myproject/index.php</code>. I want to be able to map its URL so if someone enters <code>http://127.0.0.1/myproject/service</code>, it should display the same content or perform the same functionality as index.php does.</p>
  
  <p>I tried some example on different site but couldn't get it done.</p>
  
  <p>What I tried so far is :</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  
  RewriteBase /
  RewriteRule ^(.*)\myproject\service$ $index.php
  </code></pre>
  
  <p></p>