CodeIgniter Forums

Full Version: modifying the codeigniter route structure
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum


I am trying to achieve the following url structure similar to what you see if you have a basecamp account from 37 signals:

URL Goal:

My current url structure is....

Does anyone know the easiest way to achieve this?



El Forum

[eluser]Randy Casburn[/eluser]
Hi Adam,

The only tricky part here is the part of the equation. In case you're unaware, that requires you to have your hosting company, or you if you control your own server change your DNS {a} record for your server. Your ISP likely calls this a Sub domain of your primary and may actually charge you money to have "sub domains" on your account. Most don't. Once you get the sub domain set up, the CI URI routing shouldn't be that difficult.


El Forum

Thanks Randy,

I just set up wildcard subdomians via the httpd.conf file like so

DocumentRoot /www/folder
ServerAlias *

article is here if anyone wants to reference it

now I need to figure out the best way to map the urls