encrypting url/HIde url segments? |
[eluser]Unknown[/eluser]
Hi! How can i encrypt url? example:http://test.com/Hr2/index/system_controller/re_action in this url I was in system_controller class in the controller and in the re_action function of it. my question is;how can I encrypt url instead of displaying this ---- http://test.com/Hr2/index/system_controller/re_action I want to hide "system_controller/reaction" in the url so instead of displaying that, I want this --- http://test.com/Hr2/index.php even I made many transactions in my site I want my url display always in http://test.com/Hr2/index.php
[eluser]adwin[/eluser]
use route address in the config/routes.php it will enable you to set alias for each url .
[eluser]Unknown[/eluser]
It did'nt work I finished already routing the address to route.php,but it did'nt work..
[eluser]TheFuzzy0ne[/eluser]
And this: http://ellislab.com/forums/viewthread/109429/ EDIT: As far as I know, a forward slash is a part of the base64 alphabet, but this hasn't been taken into account by Derek. I'd imagine that this forward slashes will bust your URI.
[eluser]salbertson[/eluser]
You will have to do a string replace for /. I replaced it with ~. http://ellislab.com/forums/viewthread/47984/#551720 |
Welcome Guest, Not a member yet? Register Sign In |