htaccess / mod_rewrite : Need to route old query strings (index.php?foo=bar) to Codeigniter |
[eluser]jbawarren[/eluser]
I recently upgraded a site from homegrown php to CI and now i've got orphaned links that point to site.com/index.php?foo=bar that I need to point to site.com/foo/bar. Is this something that can be solved in the .htasses with mod_rewrites? Thanks in advance.
[eluser]Nick_MyShuitings[/eluser]
You'd have to be pretty good with htaccess and prolly regex, but yes that is one way to do it. I wonder if you could use routes to do it as well... or how routes would play with the query string.
[eluser]jbawarren[/eluser]
Thanks for the reply. Found a really good article that fit my needs exactly. It only took all day! http://www.simonecarletti.com/blog/2009/...ery-string |
Welcome Guest, Not a member yet? Register Sign In |