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

[eluser]Aken[/eluser]
I would recommend assigning as many appropriate redirects as you can, sending old URLs to their newer, current locations (via htaccess is best, IMO). I understand that it may be quite a bit of work depending on the amount of URLs you currently have, but that is the ideal solution.

If you have a set URL structure with some dynamic text that will remain the same, you can set up a broad redirect. For example, say you have a blog with a URL structure like http://www.example.com/blog/12/this-is-a-blog-entry. If your new URL structure is something like http://www.example.com/newblog/this-is-a...entry.html, you can set up a catch-all redirect.

I guess it will depend on how many URLs you currently have, and how easy it'd be to redirect them all.

Perhaps you can add some code to your current pages that will redirect to their new homes for a certain amount of time, and then you can remove that code permanently. This would be good for dynamic links like blogs and such, and not require you to really add anything except a redirect code in CodeIgniter.

I hope that makes sense, it's late here. Big Grin


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