Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 701
  • Last Modified:

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
0
ike1492
Asked:
ike1492
1 Solution
 
Tyler LaczkoCommented:
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.
0
 
Dave BaldwinFixer of ProblemsCommented:
On my IIS installations including IIS7 on Godaddy with FastCGI, filenames and page names are not case sensitive.  Apache on Windows is not case sensitive either.  Case sensitivity is normally an operating system function.

If your IIS system is case sensitive, something has been added to make it that way.  Are you using an 'htaccess' addon for redirection or something else of that nature?
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now