Search code examples
urliisexpressionenginecase-sensitivecase-insensitive

Case Sensitive URL's - Can this be avoided?


First off, I know this is somewhat of a "dead horse", but I have trolled the internet and SO for a solution and found none. Unfortunately, this correct answer may be no answer.

I have a site in expressionengine that is running on IIS7, (don't ask), and running Structure.

There is a common problem of content editors either creating or changing entries and wanting to modify the URL. When they do this, they tend to get case sensitivity crazy and either camel case or just design their own method of casing to the modified URLs.

Round 1

The first issue I had was the marketing team placing camel cased and oddly cased URLs in links of marketing emails, etc. This was remedied by catching and rewriting the URLs in the .htaccess file like:

#Make URL's lower case
RewriteEngine On
RewriteMap  lc int:tolower
RewriteCond %{REQUEST_URI} [A-Z]
RewriteRule (.*) ${lc:$1} [R=301,L]

That did the trick with the URL issues for round 1.

Round 2

The next issue was two fold. --> FF to the point.

Fold 1: They have internal development that runs IIS .Net apps which were in camel cased format. The change almost shut them down for one morning. (Oops!)

Fold 2: They have contributors who modify the URLs in either camel case or just design their own method of casing to the modified URLs.

Here is where I am stuck. Is there ANY solution I can provide for this or is this a case in which they will need to adhere to tighter standards and hold themselves more accountable?

Thanks for the info peeps.


Solution

  • ExpressionEngine URLs shouldn't be case sensitive (at least they aren't on any EE site I've seen, including expressionengine.com).

    You should probably get to the bottom of your server issue causing URLs to be case sensitive in the first place. It might be something to do t