Can't get this to work (I'm using 4.0.5). This is the error message I get:
Quote:
Warning: require_once(./global.php) [function.require-once]: failed to open stream: No such file or directory in /home/apokodn/public_html/404.php on line 32
Fatal error: require_once() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/apokodn/public_html/404.php on line 32
I can change my .htaccess and use your link (to your 404.php) and it works fine. But with my own link to my own 404.php file, I get errors.
This is my .htaccess file:
Quote:
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 128.241.46.107
deny from 199.67.140.154
deny from 199.67.140.83
deny from 209.136.124.178
deny from 24.255.4.133
deny from 65.73.24.110
deny from 68.0.166.100
deny from 68.105.138.218
deny from 68.111.15.15
deny from 68.226.22.66
deny from 68.231.184.133
deny from 68.231.185.12
deny from 68.231.185.219
deny from 68.231.189.51
deny from 69.9.30.7
deny from 72.211.152.125
deny from 72.211.156.96
deny from 72.211.157.157
Warning: require_once(./global.php) [function.require-once]: failed to open stream: No such file or directory in /home/apokodn/public_html/404.php on line 11
Fatal error: require_once() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/apokodn/public_html/404.php on line 11
What’s the use?
On a 404 page usually you want to let people know something went wrong and the page they wanted to see is not available.
But after you let him know what just happened, an advantage the 404 page offers is that you are able to suggest other pages he might want to see or give him instructions to get to an active page. Using a customized 404 page, visitors won’t get confused and leave the website not knowing what happened. If you decide not to have a customized 404 page you should know that a non-customized 404 page can look not so friendly.
Customized 404 Pages and Search Engines
Search engines also can benefit from a 404 page. Imagine that a link is broken and it leads to a non-existent page. At this point search engines can’t go any further and won’t index content. If you choose to have a customized 404 page even though a page is broken search engines will see a page that can be indexed and can find links to pages that could benefit from a crawling. This is an SEO benefit!
404 Pages bring credibility
Having a non-customized 404 page looks unfriendly. But imagine a scenario where a visitor ends up on the 404 page and is shown a nice image, some instructions and links to other pages he might be interested in. He will thing that you really care about his experience on your website and probably he will go to a page you suggested and won’t leave your website or hit the back button