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