ich habe ein kleines Problem mit dem Error Pages Mod.
Vorgeschichte:
Ich habe vor einigen Monaten den o.g. Mod in meinem Forum eingebaut und bin mit der Funktion sehr zufrieden. Zudiesem Zeitpunkt lag mein Forum noch unter http://board.allytools.de.
Nun habe ich die Struktur meiner Seite geändert. Ich habe das Forum nun unter http://www.allytools.de/forum/ laufen und unter http://www.allytools.de eine Index-Seite (soll mal eine Portalseite werden).
Struktur:
http://www.allytools.de -> Start
|
|- /forum/ -> root-Ordner des Forums
| |
| |- .htaccess (Ich nenne sie mal .htaccess-2)
| |- error_page.php (Ich nenne sie mal error-2)
|
|- .htaccess (Ich nenne sie mal .htaccess-1)
|- error_page.php (Ich nenne sie mal error-1)
Unter der TLD läuft alles super, aber im Forum wird die Template-Datei nicht geladen und die Links werden falsch erstellt.
Beispiel für die Links:
Normal: Kontaktformular -> http://www.allytools.de/forum/forum/contact.php
Error-Seite: Kontaktformular -> http://www.allytools.de/forum/contact.php
Code:
.htaccess-1
Code: Alles auswählen
DirectoryIndex index.php index.html index.htm
ErrorDocument 401 /error_page.php?type=401
ErrorDocument 403 /error_page.php?type=403
ErrorDocument 404 /error_page.php?type=404
ErrorDocument 500 /error_page.php?type=500
Code: Alles auswählen
define('IN_PHPBB', true);
$phpbb_root_path = './forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('mods/errors');
$type = request_var('type', 500);
Code: Alles auswählen
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
DirectoryIndex index.php index.html index.htm
ErrorDocument 401 /error_page.php?type=401
ErrorDocument 403 /error_page.php?type=403
ErrorDocument 404 /error_page.php?type=404
ErrorDocument 500 /error_page.php?type=500
Code: Alles auswählen
define('IN_PHPBB', true);
$phpbb_root_path = './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('mods/errors');
$type = request_var('type', 500);
Was kann, muss, sollte ich machen, damit die Error-Seite überall funktioniert???
PS: Das Übel könnt ihr euch unter den o.g. Links anschauen, oder ihr folgt diesen Links:
Error-Seite TLD: http://www.allytools.de/hndsf
Error-Seite Forum: http://www.allytools.de/forum/hndsf