If you are like me and are creating personal web sites, one of the best ways to gain traffic to your site is through SEO. I won’t go into detail here as I want to focus on how to setup a route in CakePHP, but having SEO friendly URLs will go a long way in helping.
First let’s define what a “route” is. In CakePHP it allows you to add a different path to access a specific controller and/or function in that controller.
For example, let’s say I want to create a CMS. I might create a controller called “StaticContent” and then place a function for each page a client would like to create. I’m pretty sure I would start getting a lot of calls saying, “Jamie, why is my URL http://www.myaddress.com/StaticContent/myCustomPage?” So to avoid those calls, we can use a route to make it more accessible and SEO friendly. More »

Categories
Tag Cloud
Blog RSS
Comments RSS
Last 50 Posts
Back
Void « Default
Life
Earth
Wind
Water
Fire
Light 