title: how to make apache hosted website url requests case insensitive
body: <p>I have my page1.php file located inside  </p>
  
  <p><code>/public_html/mypages/page1.php</code></p>
  
  <p>if user requests <code>www.myurl.com/Mypages/Page1.php</code>  is returning <code>file not found</code></p>
  
  <p>how can I ensure that each each request is handled irrespective of the case</p>
  
  <p>I am using godaddy linux server</p>
  
  <p>from their support page </p>
  
  <p><a href="https://support.godaddy.com/help/article/899/how-do-i-use-mod_rewrite" rel="nofollow">https://support.godaddy.com/help/article/899/how-do-i-use-mod_rewrite</a></p>
  
  <p>I came to know that it can be done from <code>.htaccess</code></p>
  
  <p>so I added a <code>.htaccess</code> to <code>/public_html/mypages/</code></p>
  
  <p><a href="http://www.chrisabernethy.com/force-lower-case-urls-with-mod_rewrite/" rel="nofollow">http://www.chrisabernethy.com/force-lower-case-urls-with-mod_rewrite/</a></p>
  
  <p>here is the content of my .htaccess file </p>
  
  <pre><code>RewriteEngine On
  RewriteMap  lc int:tolower
  RewriteCond %{REQUEST_URI} [A-Z]
  RewriteRule (.*) ${lc:$1} [R=301,L]
  </code></pre>
  
  <p>after this when I try to access  any file <code>www.myurl.com/Mypages/Page1.php</code> its giving internal server error. Please help me resolve this issue .</p>
  
  <p>I also tried adding </p>
  
  <pre><code>&lt;IfModule mod_speling.c&gt;
  CheckSpelling On
  CheckCaseOnly On
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>and now I am not getting internal server error ,but I am getting </p>
  
  <blockquote>
    <p>"file not found error"</p>
  </blockquote>
  
  <p>www.myurl.com/mypages/page1.php  -->working fine.
   but
  www.myurl.com/mypages/Page1.php  --> "file not found error"</p>