Dynamic URL routing... needing some ideas |
[eluser]Unknown[/eluser]
Thank you @TunaMaxx and @Philtem for your answers. After them I put some more thought to it and ended up using a _remap function over a controller, and ended up with something pretty similar to that Show Controller from TunaMaxx working here. Now i've got something else here to workaround: Following that URL idea from the first post, what is really NEEDED in the url in most pages are those two parameters: Code: http://example.com/state/city When a user selects them, they'll be saved in a session variable for quick use and also saved in a cookie, so that the site remember what the user selected for when he/she comes back. But they won't be present over the whole site. URL for static pages will remain simple and so will companies', for SEO sake. (ie. http://example.com/static-page, http://example.com/company-name) To make it clear: What I need now is some function, helper, something that changes its value following the url above for some links (ie. http://example.com/wa/seattle/parks, or http://example.com/nv/las-vegas/parks) but not all of them. Thought about creating a helper that would use this Session Variable, something similar to site_url() function from CI, autoload it and make it handle these URL changes. But then again, if i recall it right, Google and other bots don't use Session, so that will not help me out =( Could use a hook to change $CI->config->base_url value, but that would not be nice to all .css, images and .js links Any ideas on this one ? I think i might be complicating this more than necessary, so any thoughts you can share will be really appreciated again heheh thanks for helping me out, have a nice day ! ![]() |
Messages In This Thread |
Dynamic URL routing... needing some ideas - by El Forum - 12-03-2012, 07:35 AM
Dynamic URL routing... needing some ideas - by El Forum - 12-03-2012, 11:00 AM
Dynamic URL routing... needing some ideas - by El Forum - 12-03-2012, 03:43 PM
Dynamic URL routing... needing some ideas - by El Forum - 12-03-2012, 06:08 PM
Dynamic URL routing... needing some ideas - by El Forum - 12-14-2012, 05:54 AM
|