ich wollte auf meiner HP eine 404 Error Seite erstellen. Sie soll den selben Stil wie das restliche Forum haben.
Was ich gemacht habe:
htaccess modifiziert:
Code: Alles auswählen
ErrorDocument 404 /error/error_404.php
Code: Alles auswählen
<?php
define('IN_PHPBB', true);
define('ROOT_PATH', './../');
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include(ROOT_PATH . 'common.' . $phpEx);
page_header('404 Error - Not Found', false);
$template->set_filenames(array(
'body' => 'styles/Android/template/error/404_error.html'
));
page_footer(false);
?>
Code: Alles auswählen
<!-- INCLUDE overall_header.html -->
<ul class="linklist navlinks">
<li><a href="{U_HOME}">Home</a></li>
</ul>
<div id="main">
<h2 class="imgrep error404">Error 404: Not Found</h2>
<h3>The Page you have requested was destroyed.</h3>
<p>We’re sorry, but the page you have requested was not found.</p>
</div>
<!-- INCLUDE overall_footer.html -->
Das ist mein Forum: http://tobias.hilbig-ffb.de/
Da ist der 404 Error: http://tobias.hilbig-ffb.de/error/error_404.php
Und das ist der Fehler:
Code: Alles auswählen
Warning: Cannot modify header information - headers already sent by (output started at /home/web327/hart99/ftproot/tobias.hilbig-ffb.de/error/error_404.php:1) in /home/web327/hart99/ftproot/tobias.hilbig-ffb.de/common.php on line 58
Hab jetzt schon mehrere Tuts durchgeleses, aber es klapptr einfach nicht... Was ist falsch?