Je .htaccess déjà configuré:404 ErrorDocument Problème
ErrorDocument 404 error.php
Mais chaque fois que je vais à une page non valide, il doit afficher la page 404, mais juste montre:
"error.php"
Juste blanc, juste le texte du fichier php seulement ...
Le fichier et .htaccess existe.
intérieur error.php:
<?php $title = "Error 404 - Page Not Found"; include("include/glob_header.php"); ?>
<div class="content_wrap">
<div class="main_content_wrap">
<div class="main_content">
<h2>Error 404 - Page Not Found</h2>
<p><div align="center"><img src="img/HS.gif" alt="" /></div><hr /></p>
<p>The page you have requested could not be found.</p>
<ul>
<li>The page you were looking for may have been deleted...</li>
<li>The page may have been moved...</li>
<li>... or possibly the page does not even exist!</li>
</ul>
<p>Click <a href="index.php">here</a> to go back to the home page</p>
<p>... or go back the <a href="javascript: history.go(-1);">previous</a> page</p>
</div>
</div>
<div class="sidebar_content_wrap">
<div class="sidebar_content">
<h2>Latest News</h2>
<?php include("include/glob_sidebar.php"); ?>
</div>
</div>
</div>
<?php include("include/glob_footer.php"); ?>
Cette question a été répondu à plus de deux ans depuis – LittleBobbyTables