We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

EE2 URLs are case insensitive. How to fix?

Development and Programming

OutofControl's avatar
OutofControl
164 posts
14 years ago
OutofControl's avatar OutofControl

I’ve noticed that in EE2.2.2 all my URLs are case insensitive. For example:

domain.tld/JOBS is exactly the same as domain.tld/jobs

Is there a setting to fix this issue? /JOBS and /jobs should NOT be considered the same as far as I know.

Thanks.

Moved to Development and Programming by Moderator

       
OutofControl's avatar
OutofControl
164 posts
14 years ago
OutofControl's avatar OutofControl

Additional Information:

Template preferences are set to: Enable Strict URLs - YES 404 Page - errors/404 Save Template Revisions - NO Allow Templates to be Saved as Files? - YES

I checked an older 1.7.1 site and it doesn’t appear to have this issue. I have checked a few community sites including ExpressionEngines own site and see they all have the issue in presumably EE2.2.2+

i.e.: This http://expressionengine.com/SUPPORT and this http://expressionengine.com/support work equally.

       
OutofControl's avatar
OutofControl
164 posts
14 years ago
OutofControl's avatar OutofControl

Found that EE1.7.1 sites have the same issue. Perhaps Ellis Labs sees this as a feature and not a problem. I still see this as a problem.

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
14 years ago
Sue Crocker's avatar Sue Crocker

Hi, OutofControl.

This behavior is by design.

We compare identical templates and channel entry url_titles after converting them to lowercase so we’d have to add additional code to start comparing everything (to make sure we don’t have duplicates) based on case-insensitivity.

       
OutofControl's avatar
OutofControl
164 posts
14 years ago
OutofControl's avatar OutofControl

Can I disable this behaviour. I simply want EE to behave like normal URL’s, so if someone types in domain.tld/JOBS instead of domain.tld/jobs, they get a 404 error.

I guess in its simplest form, I would like to be able to have EE NOT convert to lower case before checking. If no option exists for this (preference or hook), where might I find this in the source so I can hack the core myself.

Thanks Sue

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
14 years ago
Sue Crocker's avatar Sue Crocker

I honestly don’t know where that is in the code, but moving to the Development and Programming forum for additional community support.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.