CodeIgniter Forums
hiding file error path (?) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: hiding file error path (?) (/showthread.php?tid=50014)



hiding file error path (?) - El Forum - 03-11-2012

[eluser]lucid[/eluser]
Hi, I created a website which is going into Google index pretty nice..

But google somehow index pages with errors (which is weird because those pages shouldn't create these kind of errors).

But the real problem is.. that error reveals folder structure of my application, look:

https://www.google.pl/#hl=pl&sclient=psy-ab&q=inurl:allehot.pl+error&oq=inurl:allehot.pl+error

How can i hide it or change the default error page?



hiding file error path (?) - El Forum - 03-11-2012

[eluser]InsiteFX[/eluser]
Search for robots.txt file!



hiding file error path (?) - El Forum - 03-11-2012

[eluser]lucid[/eluser]
[quote author="InsiteFX" date="1331469153"]Search for robots.txt file!
[/quote]

That won't give me an answer. The problem is that google indexed working pages with some kind of error. I don't know why the error occured for googlebot, I'm trying to figure this out, but first i want to secure these kind of situations for the future.

and it will be better that if codeigniter told me:

an error on file _filename_ on line 58

insted of 'error on file {filepath}/filename on line 58

Wink