Link to home
Start Free TrialLog in
Avatar of Ike McMahon
Ike McMahonFlag for United States of America

asked on

PHP on IIS via Fast CGI: Is there a way to overcome file name case sensitivity?

Hello,

I am running a PHP site in IIS with Fast CGI to process the PHP.  I am stuck with IIS for a variety or reasons.  Question:  Is there a way to set Fast CGI or IIS to ignore case sensitivity in file names?  I'd like www.site.com/INDEX.php to be recongnised the same as www.site.com/index.php.  I know this is not possible in Apache, but wanted to see if my configuration makes this possible.

Thanks!

Ike1492
Avatar of Tyler Laczko
Tyler Laczko
Flag of Canada image

on your error page you could have code that took the url they tried to access
change it to lowercase and attempt to redirect to the lowercase address.

you would also need a check if the url is all lowercase to not redirect otherwise they would hit an infinite loop if they actually when to a incorrect page.
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial