Welcome Guest, Not a member yet? Register   Sign In
How to use the route mydomain.com/parameter


I am stuck with a routing problem,

I would like to be able using the route http://mydomain.com/parameter

Like facebook use it for profiles http://facebook.com/username

I tried using the route 

But i don't really like this solution because i have to declare all my usefull routes before it into routes.php
Because if i don't all routing request will correspond to this rule

Is anybody has already use a good solution for this problem ?

Thankk you very much for your help

There are several ways of doing it.
PHP Code:
$route['profile/(.+)'] = 'profile/$1'

SEE: The CodeIgniter User's Guide

Controllers - Remapping Method Calls
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Theme © iAndrew 2016 - Forum software by © MyBB