Welcome Guest, Not a member yet? Register   Sign In
htaccess / mod_rewrite : Need to route old query strings (index.php?foo=bar) to Codeigniter
#1

[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.
#2

[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.
#3

[eluser]jbawarren[/eluser]
Thanks for the reply.

Found a really good article that fit my needs exactly. It only took all day! Smile

http://www.simonecarletti.com/blog/2009/...ery-string




Theme © iAndrew 2016 - Forum software by © MyBB