Change URI Scheme to www.mysite.com/#/controller/method/... ? |
[eluser]markanderson993[/eluser]
Hey everyone, I hope my question is simple but, can I change the defualt uri schema to www.mysite.com/#/controller/method/... ? So I would just be adding a # after mysite.com and shifting everything over to the right Any help would be greatly appreciated, Thanks! Mark
[eluser]Sean Gates[/eluser]
# is reserved. You cannot do that. Possibly you could use a | or ~.
[eluser]Sean Gates[/eluser]
Also, what is the context? Why would you need to shift everything? That would seem to be a headache down the road.
[eluser]markanderson993[/eluser]
Thanks for the response. I'm trying to devise a codeigniter-friendly uri schema to allow an ajax-heavy navigation system. Mark
[eluser]Sean Gates[/eluser]
You shouldn't have to. Everything is relative, and if you have set your .htaccess correctly (for mod_rewrite removing index.php), then /controller/method/ should work perfectly. Code: <a href="/controller/method/">link</a> Have you been having problems with Ajax? There is a way to find out if the request came from a normal click request, or from XHR, and then shift your views accordingly. |
Welcome Guest, Not a member yet? Register Sign In |