Welcome Guest, Not a member yet? Register   Sign In
Best practices?
#1

[eluser]sheldonnbbaker[/eluser]
So I'm porting over an application I made a few months ago from my own framework to CI - so I'm probably gonna have quite a few questions along the way regarding best practices and how to do certain things, so here's the first one I guess:

- where is a good place to have a redirect script for misspelled URLs? e.g, if a user goes to mysite.com/book_for_sale/ instead of mysite.com/book_for_sale/id_number_554542423, I want to redirect them to mysite.com/all_books_for_sale.

Should I make a hook here - 'cause doing a redirect in the controller is kind of 'late', is it not?

Thanks Smile


Messages In This Thread
Best practices? - by El Forum - 01-30-2009, 01:38 PM
Best practices? - by El Forum - 01-30-2009, 01:46 PM
Best practices? - by El Forum - 01-30-2009, 01:52 PM
Best practices? - by El Forum - 02-01-2009, 02:54 AM
Best practices? - by El Forum - 02-01-2009, 03:10 AM
Best practices? - by El Forum - 02-02-2009, 05:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB