Welcome Guest, Not a member yet? Register   Sign In
404 - When a particular page isn't found...
#1

[eluser]deco10[/eluser]
I want to redirect them to the custom page not found page which is basically has the site layout with a note telling them whatever page wasn't found.

I'm not quite sure where to start with this or if there is something there ready to handle this already.

Thanks for any advice!
#2

[eluser]wabu[/eluser]
You can customize the 404 page (and if you needed to, in a controller function you could call show_404()).
#3

[eluser]deco10[/eluser]
but there is no controller function that will be called... if the page isn't found either the controller itself isn't found or the function in the controller isn't found.
#4

[eluser]wabu[/eluser]
Are you not receiving a 404 response when calling an unknown page? Otherwise you can customize CI's inbuilt 404 page (located in your app's errors directory).

If I'm missing the point and that's not what you're looking for please post more info.
#5

[eluser]deco10[/eluser]
Ok, that works, now the problem I have is if I go to ....com/invalidpage.html it just shows a blank page.


if I go to ....com/mycontroller/invalidpage it shows me my custom error page.




Theme © iAndrew 2016 - Forum software by © MyBB