07-25-2011, 08:22 AM
[eluser]Benito[/eluser]
If I understand correctly, you want to reroute
and pass the referance?
I don't really understand why you would want to do it this way, because this means that anything passed after yoursite.com/$variable will be run through this controller.
In config/routes.php set:
On the other hand, I would rather do something like:
Cheers.
If I understand correctly, you want to reroute
Code:
example.com/index.php/page/fetch_page_by_reference/reference
to
example.com/reference
I don't really understand why you would want to do it this way, because this means that anything passed after yoursite.com/$variable will be run through this controller.
In config/routes.php set:
Code:
$route['(:any)'] = "page/fetch_page_by_reference/";
On the other hand, I would rather do something like:
Code:
$route['page/(:any)'] = "page/fetch_page_by_reference/$1";