Welcome Guest, Not a member yet? Register   Sign In
how to create 301 redirect in codeigniter
#7

[eluser]achilles_085[/eluser]
thanks for the input!

I'd like to redirect the old url's to it's new path but per requirements, the client wants it to redirect to it's homepage Sad

This should i suggest to them for better SEO!

I also, tried your suggestion about redirecting old urls to it's new path..and it works

what i did is i re-route my old url to a new member function in my controller

old path:
page/view/$1

new path:
page/$1

routes:
page/view/$1 = 'page/redirect_old_path/$1'
page/$1 = 'page/new_url_page/$1'

where the redirect_old_path member function redirects to 'page/new_url_page/$1'

Im just a newbie in CI, any suggestion on how to improve this approach are welcome!

Thanks Aken for the help!


Messages In This Thread
how to create 301 redirect in codeigniter - by El Forum - 11-13-2009, 11:30 PM
how to create 301 redirect in codeigniter - by El Forum - 11-14-2009, 12:14 AM
how to create 301 redirect in codeigniter - by El Forum - 11-16-2009, 12:44 AM
how to create 301 redirect in codeigniter - by El Forum - 11-16-2009, 02:18 AM
how to create 301 redirect in codeigniter - by El Forum - 11-16-2009, 02:22 AM
how to create 301 redirect in codeigniter - by El Forum - 11-16-2009, 02:37 AM
how to create 301 redirect in codeigniter - by El Forum - 11-16-2009, 09:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB