Hi there. If it's the first time you come here, maybe you want to read a short site presentation. If you're interested in editing, you can check how to create a page and how to edit a page to get started right away! You may also want to make an account, so your name will be linked to your contributions.

If you already have an account, you should log in now.


From Wiki4Games
Jump to: navigation, search

Here is the 404.php file we used to use. We don't need it anymore now that pretty URLs are properly configured!

header("HTTP/1.1 404 Not Found");
if (isset($_SERVER['REDIRECT_QUERY_STRING']))$query='?'.str_replace("&","&",$_SERVER['REDIRECT_QUERY_STRING']);
header("Location: https://wiki4games.com/index.php?title=".substr($_SERVER["REDIRECT_URL"],1).$query);
echo '<meta http-equiv="refresh" content="1;url=https://wiki4games.com/index.php?title='.substr($_SERVER["REDIRECT_URL"],1).$query.'">';
echo 'This page doesn't exist.<br/>
<a href="/index.php?title='.substr($_SERVER["REDIRECT_URL"],1).$query.'">Click here</a> if you are not automatically redirected.';