Error redirection |
[eluser]cominus[/eluser]
Please be patient if I have overlooked something obvious. Although I registered here last year I did not begin working with code igniter before this week. So, here goes: It seems intuitive to me that Code: <?php show_error('errors/forbidden', int $status_code=403); Code: <?php Code: <?php Code: $route['404_override'] = 'errors/page_missing'; What am I missing? or am I attempting the impossible? Thanks in advance.
[eluser]cominus[/eluser]
It has occurred to me, the code was in a stand-alone index.php file (used to guard over image, css and upload folders). So I have updated the code - but still have the same results. Here is the update: Code: <?php and I should mention, in the uploads folder, this code (or file) activates the custom error 404 page. In the css and images folders, the browser presents a white screen. All three folders are at the same level on the server.
[eluser]InsiteFX[/eluser]
For one this line should be: Code: <?php show_error('errors/forbidden', (int) $status_code=403); InsiteFX
[eluser]cominus[/eluser]
Thanks, InsiteFX. However, there is absolutely no change. It looks like two ways of writing the same code. But I thank you anyway for giving me some of your time and thought.
[eluser]KarlBallard[/eluser]
View-source, do you get any of the HTML markup sent back to the browser?
[eluser]cominus[/eluser]
KarlBallard - the HTML comes from the page_missing function and not the forbidden function. That is the problem I am trying to overcome. Thank you for looking at this. |
Welcome Guest, Not a member yet? Register Sign In |