CodeIgniter Forums
How to use ~folders? - 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: How to use ~folders? (/showthread.php?tid=19876)



How to use ~folders? - El Forum - 06-21-2009

[eluser]Mareshal[/eluser]
How can I create and use ~folders?

I want to access admin panel with this: domain.com/~admin


How to use ~folders? - El Forum - 06-22-2009

[eluser]bretticus[/eluser]
Those are apache user folders via mod_userdir. Not really related to codeigniter. You might try actually setting up a route in system/application/config/routes.php but ~ is probably not an allowed character.


How to use ~folders? - El Forum - 06-22-2009

[eluser]Mareshal[/eluser]
I tought is something I can do via ci or htaccess. thanks


How to use ~folders? - El Forum - 06-22-2009

[eluser]bretticus[/eluser]
You made a fast response to my response. I wasn't quite done. I have updated my post.


How to use ~folders? - El Forum - 06-22-2009

[eluser]Mareshal[/eluser]
offtopic: I have gmail notifier installed on my firefox, with updatins set to 1 minute Wink

let me try that

edit: thank a million, works now. I have a very strict list of premitted uri chars: $config['permitted_uri_chars'] = 'a-z0-9~-';

$route['~subscribe'] = "newsletter/subscribe"; and works Smile


How to use ~folders? - El Forum - 06-22-2009

[eluser]bretticus[/eluser]
Awesome!