Some URL Help - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Some URL Help (/showthread.php?tid=3694) |
Some URL Help - El Forum - 10-17-2007 [eluser]Phil Sturgeon[/eluser] Hey gang, Trying to get some real simply URL processing for a project im on. I have never got on shockingly well with regex or mod_rewriting subdomain urls, so how can I force the folllowing links to some CI controllers? I understand there will be a mix of routes and mod_rewrite but im struggling on them both. http://groups.sitename.com/group_name and http://sitename.com/user_name I need to somehow turn the names into userID and groupID but im thinking I can just add an extra method to a controller like: Code: function group_from_name($group_name) Been pondering this one for a while! |