htaccess / mod_rewrite : Need to route old query strings (index.php?foo=bar) to Codeigniter - 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: htaccess / mod_rewrite : Need to route old query strings (index.php?foo=bar) to Codeigniter (/showthread.php?tid=42754) |
htaccess / mod_rewrite : Need to route old query strings (index.php?foo=bar) to Codeigniter - El Forum - 06-17-2011 [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. htaccess / mod_rewrite : Need to route old query strings (index.php?foo=bar) to Codeigniter - El Forum - 06-18-2011 [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. htaccess / mod_rewrite : Need to route old query strings (index.php?foo=bar) to Codeigniter - El Forum - 06-18-2011 [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/01/apache-rewriterule-and-query-string |