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

Posted on 2011-05-12
Last Modified: 2012-05-11

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 to be recongnised the same as  I know this is not possible in Apache, but wanted to see if my configuration makes this possible.


Question by:ike1492
    LVL 10

    Expert Comment

    by:Tyler Laczko
    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.
    LVL 82

    Accepted Solution

    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?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now