Wednesday, April 28, 2010

Redirect mixed case URLS

Hi guys

Does anyone know of a decent, non htaccess way of reading in URL's
that have mixed case but still point to the appropriate controller/
action ?

e.g.

Router::connect('/about', array('controller' => 'pages', 'action' =>
'display','about'));

Means I'm able to route my about page by: myhosting.com/about - but
attempting to visit myhosting.com/About results in error.

I've tried checking out the API for the Router class methods but seem
to be stuck.

Regards

Robert

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: