error redirection |
[eluser]Bigil Michael[/eluser]
if any php error encounters in any of the page it will redirect to 404 page not found error. is it possible ??? suggestions/answers please????/
[eluser]Noobigniter[/eluser]
InsiteFX you've already answered in your post and without wishing to offend you, i see that the remark of aeternuslibertas is not enough.
[eluser]Noobigniter[/eluser]
Have you tried? Moreover, no code, it is difficult to know what you have coded.
[eluser]Bigil Michael[/eluser]
boss i will explain my problem clearly. I have developed a website for restaurant,running fine. In rder to test the website i have used some demo restaurant names. Now my website is ready to live. So i removed dummy contents. when i google my website it will list some links relating to my site with demo item details. when i click any of the links it will show php error because the demo items are not present in table now. I know it is so bad to show php error in a live site,so try to show 404 page not found error. I think the google stores[indexes] old demo item details. now my site didn't have any problem. problem is only when google my website. I think now you understand my problem. Is any solution to solve this problem????
[eluser]Noobigniter[/eluser]
If data are not available, I advise you not to return, or return a message, which avoids errors precisely. You do something like this? Code: $query = $this->db->query("YOUR QUERY");
[eluser]zoopstud[/eluser]
Can't you just set it to production in index.php so no errors are shown?
[eluser]Bigil Michael[/eluser]
now i am using Code: error_reporting(0); but this is not the answer iam looking. |
Welcome Guest, Not a member yet? Register Sign In |