Knowledge Base Navigation
Articles: 51 Categories: 8
KB Article: How to stop the dreaded dead page load
Article: | How to stop the dreaded dead page load |
Submitted By: | Telli |
Date Added: | 01-11-2005 3:36:02 |
Hits: | 8,380 |
Fix for the dreaded dead site look when there is a trailing slash in the request
Ever try to load a Nuke site with a trailing slash after the index.php? Quite a mess isnt it. The easiest way to fix them is to add this simple code into your mainfile.php at the very top. Replace the site URL with yours. if($_SERVER['REQUEST_URI'] != "/" AND substr($_SERVER['REQUEST_URI'], -1) == "/") { header("Location: http://www.yoursite.com/index.php"); } That will stop the page from loading and redirect them back to the index.php. |
Current rating: 9.22 by 390 users
Please take one second and rate this article... |
Not a Chance | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Absolutely |
Please register or sign-in to post comments.