Re: URL Case

2011-04-17 Thread Pablo Viojo
Regarding the $_GET['url'] question, check the webroot/.htaccess file, especially the line: RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] This is used by cakephp to handle friendly urls Saludos, Pablo Viojo CTO, Groupon Latinoamerica pablo.vi...@groupon.com http://www.groupon.com.ar http://www.

Re: URL Case

2011-04-17 Thread Pablo Viojo
at line 2 of index.php if ($_SERVER['REQUEST_URI']!=strtolower($_SERVER['REQUEST_URI'])){ header("HTTP/1.1 301 Moved Permanently" ); header("Location: " . strtolower($_SERVER['REQUEST_URI'])); } (from memory, maybe something is wrong) Saludos, Pablo Viojo CTO, Groupon Latinoamerica pablo.vi...

Re: URL Case

2011-04-17 Thread Ryan Schmidt
On Apr 17, 2011, at 10:44, AD7six wrote: > On Apr 17, 4:06 am, Ryan Schmidt wrote: >> On Apr 15, 2011, at 08:57, AD7six wrote: >>> $_GET['url'] = strtolower($_GET['url']); anywhere (e.g., line 1 of >>> your index.php) will do the deed - and if you put a canonical meta tag >>> in your page, you avoi

Re: URL Case

2011-04-17 Thread AD7six
On Apr 17, 4:06 am, Ryan Schmidt wrote: > On Apr 15, 2011, at 08:57, AD7six wrote: > > > > > > > > > > > On Apr 15, 9:25 am, Ryan Schmidt wrote: > >> On Apr 14, 2011, at 14:49, stas kim wrote: > > >>> This might help > > >>>http://www.pseudocoder.com/Super_Awesome_Advanced_CakePHP_Tips.pdf > >

Re: URL Case

2011-04-16 Thread Ryan Schmidt
On Apr 15, 2011, at 08:57, AD7six wrote: > On Apr 15, 9:25 am, Ryan Schmidt wrote: >> On Apr 14, 2011, at 14:49, stas kim wrote: >> >>> This might help >> >>> http://www.pseudocoder.com/Super_Awesome_Advanced_CakePHP_Tips.pdf >> >>> search 'Case Insensitive' >> >> I haven't read the rest of t

Re: URL Case

2011-04-15 Thread AD7six
On Apr 15, 9:25 am, Ryan Schmidt wrote: > On Apr 14, 2011, at 14:49, stas kim wrote: > > > This might help > > >http://www.pseudocoder.com/Super_Awesome_Advanced_CakePHP_Tips.pdf > > > search 'Case Insensitive' > > I haven't read the rest of that document, but the Case Insensitive section is >

Re: URL Case

2011-04-15 Thread Ryan Schmidt
On Apr 14, 2011, at 14:49, stas kim wrote: > This might help >> > http://www.pseudocoder.com/Super_Awesome_Advanced_CakePHP_Tips.pdf > > search 'Case Insensitive' I haven't read the rest of that document, but the Case Insensitive section is certainly inaccurate. Its first sentence "Generally

Re: URL Case

2011-04-14 Thread stas kim
This might help http://www.pseudocoder.com/Super_Awesome_Advanced_CakePHP_Tips.pdf search 'Case Insensitive' On Thu, Apr 14, 2011 at 3:00 PM, cricket wrote: > On Thu, Apr 14, 2011 at 2:08 PM, Krissy Masters > wrote: >> Thanks for the link. Its for Apache, I am on nginX but thanks all the same.

Re: URL Case

2011-04-14 Thread cricket
On Thu, Apr 14, 2011 at 2:08 PM, Krissy Masters wrote: > Thanks for the link. Its for Apache, I am on nginX but thanks all the same. Oops! Sorry, I did see that earlier. > I was just curious if there was a simple way to force the URLs. People don't > normally type out URLs I was just curious if

RE: URL Case

2011-04-14 Thread Krissy Masters
Just seems like more work for the .1% who might. K -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of cricket Sent: Thursday, April 14, 2011 3:22 PM To: cake-php@googlegroups.com Subject: Re: URL Case On Thu, Apr 14, 2011 at 9:26 AM, K

Re: URL Case

2011-04-14 Thread cricket
On Thu, Apr 14, 2011 at 9:26 AM, Krissy Masters wrote: > 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.examp

RE: URL Case

2011-04-14 Thread Krissy Masters
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 hand

Re: URL Case

2011-04-13 Thread cricket
On Thu, Apr 14, 2011 at 12:23 AM, 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

Re: URL Case

2011-04-13 Thread Ryan Schmidt
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