Welcome Guest, Not a member yet? Register   Sign In
Pass agrument to home page
#12

[eluser]thephpguy[/eluser]
[quote author="Atharva" date="1294316412"]
Code:
$route['^(?!controller1|controller2|controller3).*'] = "yourcontroller/yourfunction/";

What this will do is this will redirect domain.com/username to yourcontroller/yourfunction. It will check if the controller in the uri is NOT the one mentioned in the rule. So you can have a special controller only for handling the 'domain.com/username' link structure.[/quote]

I tried that and it works for me. The only problem i have to keep adding controllers in the route as i create new.


Messages In This Thread
Pass agrument to home page - by El Forum - 01-05-2011, 11:12 AM
Pass agrument to home page - by El Forum - 01-05-2011, 11:57 AM
Pass agrument to home page - by El Forum - 01-05-2011, 12:05 PM
Pass agrument to home page - by El Forum - 01-05-2011, 11:00 PM
Pass agrument to home page - by El Forum - 01-06-2011, 12:09 AM
Pass agrument to home page - by El Forum - 01-06-2011, 12:16 AM
Pass agrument to home page - by El Forum - 01-06-2011, 12:20 AM
Pass agrument to home page - by El Forum - 01-06-2011, 12:30 AM
Pass agrument to home page - by El Forum - 01-06-2011, 01:11 AM
Pass agrument to home page - by El Forum - 01-06-2011, 01:21 AM
Pass agrument to home page - by El Forum - 01-07-2011, 01:19 AM
Pass agrument to home page - by El Forum - 01-11-2011, 03:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB