Welcome Guest, Not a member yet? Register   Sign In
[Solved] Routing issue - need to redirect from url parameterized pages to new CodeIgniter nice urls
#1

[eluser]ehicks727[/eluser]
I'm re-coding an entire site in CodeIgniter. The current site uses url paramters, such as this...

http://www.sportsfeatures.com/index.php?...tle=London 2012 captured for all time in Portrait Gallery project&id=46145

For SEO purposes (getting Google to re-index my site over time with the new url structure and avoiding 404s) I'm trying to set up some routing to 301 redirect the old pages to the new pages.

I'm keying into id= so if I can get the id of the article into a controller, then I'm good. I'm just having problems getting there and could use some help.

I've tried this..

Code:
$route['index.php?(:any)'] = 'reroute/$1';

But it comes back with "The URI you submitted has disallowed characters."

How can I carve out the id=#### and send it to a controller called reroute?

Thanks for your help.


Messages In This Thread
[Solved] Routing issue - need to redirect from url parameterized pages to new CodeIgniter nice urls - by El Forum - 11-01-2009, 02:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB