Removing the method name from urls |
[eluser]mikegeorgeff[/eluser]
I have a url like this: mysite.com/members/member/user_name How would I remove the second segment (member) from the url so I end up with this: mysite.com/members/user_name here is my controller code Code: <?php
[eluser]Basketcasesoftware[/eluser]
Read this section of the User Guide. http://ellislab.com/codeigniter/user-gui...s/uri.html I'd throw you a code sample but I'm not really sure what you want to with this.
[eluser]mikegeorgeff[/eluser]
I've read that section of the guide several times. I just want to remove the action (the controllers function) from the url so this: mysite.com/members/member/user_name would turn into this: mysite.com/members/user_name
[eluser]Rok Biderman[/eluser]
Well, that is doable with routes like this Code: $route['member/index'] = "members/index"; |
Welcome Guest, Not a member yet? Register Sign In |