Welcome Guest, Not a member yet? Register   Sign In
How to bypass first segment in routing?
#3

[eluser]Chicken's Egg[/eluser]
What about putting the following line in your configuration routes.php file:
<?php
$route['([a-z]{2})/(.[^/]+/.[^/]+)/(:any)'] = "$2/$1/$3/";
?>

Goal:
Rewrite: domein/fr/controller/method/any to domein/controller/method/fr/any.


Messages In This Thread
How to bypass first segment in routing? - by El Forum - 08-05-2010, 04:17 AM
How to bypass first segment in routing? - by El Forum - 08-05-2010, 04:41 AM
How to bypass first segment in routing? - by El Forum - 08-15-2010, 04:28 AM
How to bypass first segment in routing? - by El Forum - 08-15-2010, 07:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB