Frequently Asked Questions

404 message with NL-ConvertToPHP?

How can I add a 404 message when using NL-ConvertToPHP?

If you’d like to display a message when someone has hit a dead link or a page that you haven’t yet created, simply add a final else statement at the end of your main index page, just before your footer tag. It should look something like this:

<? } elseif ($_SERVER['QUERY_STRING'] == "extra") { ?>
//Paste here your HTML code on the Extra page (without the header and footer code, obviously).

<? } else { ?>
//Paste here any HTML code that you want on the 404 page (without the header and footer code, obviously - eg. <h2>Oh no! This is a 404 - page not found!!</h2>

<? }
include('footer.inc'); ?>