url routing .. any idea? - 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: url routing .. any idea? (/showthread.php?tid=31449) |
url routing .. any idea? - El Forum - 06-19-2010 [eluser]a7med.she7ata[/eluser] hi all i am working in a project my members profile url now is http://example.com/members/ci_user and i want the url to be http://example.com/ci_user any ideas?? url routing .. any idea? - El Forum - 06-19-2010 [eluser]WanWizard[/eluser] Any other controllers in use except 'members'? url routing .. any idea? - El Forum - 06-19-2010 [eluser]a7med.she7ata[/eluser] just members controller function login function view profile function edit profile function connect with twitter (still working on it) url routing .. any idea? - El Forum - 06-19-2010 [eluser]WanWizard[/eluser] If you don't want to use controller and method name in the URL, how are you going to access the other methods? url routing .. any idea? - El Forum - 06-19-2010 [eluser]a7med.she7ata[/eluser] okay i will make only one method to login and other methods i will seprate it so how can i make the url like this http://example.com/ci_user url routing .. any idea? - El Forum - 06-19-2010 [eluser]Myles Wakeham[/eluser] Sounds like a simple case of a set of route entries in routes.php in your config folder to me. Just route the preferred incoming requests there, and change your HTML/links to reference the desired URLs, and it should just work. Myles url routing .. any idea? - El Forum - 06-19-2010 [eluser]a7med.she7ata[/eluser] can you give me an example? i'm sorry for disturbing url routing .. any idea? - El Forum - 06-19-2010 [eluser]Myles Wakeham[/eluser] [quote author="a7med.she7ata" date="1276982476"]can you give me an example? i'm sorry for disturbing[/quote] Manual url routing .. any idea? - El Forum - 06-19-2010 [eluser]Unknown[/eluser] you go to application folder then config folder and you set the default_controller in routes file as memeber controller |