delle 0 Newbie Poster

When you’re stucked with an empty page on Webclassifieds that you only see the header and the footer with a blank white page in between, you must be on a page that never existed.
A quick way to reproduce this is to try to append any string on your URL, like: http:/YOURDOMAIN.COM/link_to_webclassifieds_page/ANYTHING
You might want to create a 404 page instructing your customer that the page they’re looking for doesn’t exists.
For quick fix, simply download these files and overwrite index.php.
The content of the ZIP file above are two files:
A modified index.php that simply changes the code so that a non-existing page will trigger to show the 404.html which is attached. The original code used to look like this:
include "engine/pages/$page.php";
…which had been modified as:
// If file doesn’t exists, show 404 error page
if (file_exists("engine/pages/$page.php"))
include "engine/pages/$page.php";

else
parseVariables("templates/404.html");
404.html which should be placed inside the /templates/ directory, which will be loaded when the file being called doesn’t exists.
Hope this helps ^_^

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.