What is the behavior that you are wanting to achieve?
*** Exactly what you typed, if they type it in wrong case 301 redirect.

 
> Is it that, when a user requests http://www.example.com/FOO, they are 301
redirected to http://www.example.com/foo? 


If so, why are your users requesting URLs with uppercase letters in the
first place?
*** Because you never know what the end user might be doing, I know
personally if I am on a site I visit a lot I sometimes just type in / edit
the url......i might be somewhere on yahoo and just manually type in
news.yahoo.com rather than go back to the home page and click news...but if
I have caps on by mistake then that's why I am wondering about it in cake 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Ryan Schmidt
Sent: Thursday, April 14, 2011 3:45 AM
To: [email protected]
Subject: Re: URL Case


On Apr 13, 2011, at 23:23, Krissy Masters wrote:

> Is there a simple way to enforce the url to lowercase?
> I am not using apache and all I found is apache mod ways to do this. I am
running nginx and no luck finding anything on that front. Not sure if this
could be handled by cake of if it should be done thru the server?

In general, the path part of a URL is case-sensitive. Most web servers treat
the URL http://www.example.com/foo as a different resource than
http://www.example.com/FOO -- though some web servers might treat them the
same, especially if the URL represents a file on the server's disk and the
server has a case-insensitive filesystem, like Mac OS X and Windows do by
default.

What is the behavior that you are wanting to achieve? Is it that, when a
user requests http://www.example.com/FOO, they are 301 redirected to
http://www.example.com/foo? If so, why are your users requesting URLs with
uppercase letters in the first place?




-- 
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help
others with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to