Welcome Guest, Not a member yet? Register   Sign In
Redirect to custom 404 page when somebody enters random or misspelled unexistent controller in URL
#1

[eluser]luismartin[/eluser]
Considering this URL:

http://www.mysite.com/history

if I misspell the controller, or I enter a random one, like this

http://www.mysite.com/sdsdrgerg

I get this error (with a 'development' environment established):

Fatal error: Class 'CI_Controller' not found in C:\path\to\site\system\core\CodeIgniter.php on line 231

I'd like to redirect any bad request to my site to a custom 404 page, while keeping the 404 http code.

Any suggestion appreciated.


Messages In This Thread
Redirect to custom 404 page when somebody enters random or misspelled unexistent controller in URL - by El Forum - 01-15-2012, 10:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB