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

[eluser]ehicks727[/eluser]
I actually want to force a server 301 redirect, not just re-route the page... is there any reason I can't do this in the routes.php file?

Code:
if ($_GET['id']) {
    redirect("/redirectstories/story/".$_GET['id'], 'location', 301);
}

It's not working right now, but I haven't cleared my cache, like you mentioned above.. I'll do that next.


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



Theme © iAndrew 2016 - Forum software by © MyBB