MyBB.de Forum
Forum bringt Fehler 404 - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: MyBB 1.8.x (https://www.mybb.de/forum/forum-87.html)
+--- Forum: Installation, Aktualisierung und Merge System (https://www.mybb.de/forum/forum-89.html)
+--- Thema: Forum bringt Fehler 404 (/thread-35638.html)

Seiten: Seiten: 1 2 3


RE: Forum bringt Fehler 404 - StefanT - 07.06.2018

Hast du Zugriff auf irgendwelche Server-Logs? Daran sollte eine konkrete Fehlermeldung enthalten sein.

Ansonsten kannst du versuchen die erste Zeile in der .htaccess zu löschen oder auszukommentieren.


RE: Forum bringt Fehler 404 - maiurb - 07.06.2018

Habe die erste Zeile auskommentiert, jetzt funktioniert es.

#RewriteEngine Onews +FollowSymlinks -Indexes

Ist die Zeile fehlerhaft???


RE: Forum bringt Fehler 404 - frostschutz - 07.06.2018

Das sind zwei Zeilen

Code:
Options -MultiViews +FollowSymlinks -Indexes
RewriteEngine on

Manche Hosts mögen Options +FollowSymlinks nicht. Dann mal Options -Indexes probieren.


RE: Forum bringt Fehler 404 - maiurb - 07.06.2018

(07.06.2018, 10:42)frostschutz schrieb: Das sind zwei Zeilen

Code:
Options -MultiViews +FollowSymlinks -Indexes
RewriteEngine on

Manche Hosts mögen Options +FollowSymlinks nicht. Dann mal Options -Indexes probieren.

Nein, da ist nur eine Zeile, am Anfang.

Hier mal der ganze Code.

PHP-Code:
#RewriteEngine Onews +FollowSymlinks -Indexes

#
# If mod_security is enabled, attempt to disable it.
# - Note, this will work on the majority of hosts but on
#   MediaTemple, it is known to cause random Internal Server
#   errors. For MediaTemple, please remove the block below
#
<IfModule mod_security.c>
# Turn off mod_security filtering.
SecFilterEngine Off

# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>

#
# MyBB "search engine friendly" URL rewrites
# - Note, for these to work with MyBB please make sure you have
#   the setting enabled in the Admin CP and you have this file
#   named .htaccess
#
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule 
^forum-([0-9]+)\.htmlforumdisplay.php?fid=$[L,QSA]
RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.htmlforumdisplay.php?fid=$1&page=$[L,QSA]

RewriteRule ^thread-([0-9]+)\.htmlshowthread.php?tid=$[L,QSA]
RewriteRule ^thread-([0-9]+)-page-([0-9]+)\.htmlshowthread.php?tid=$1&page=$[L,QSA]
RewriteRule ^thread-([0-9]+)-lastpost\.htmlshowthread.php?tid=$1&action=lastpost [L,QSA]
RewriteRule ^thread-([0-9]+)-nextnewest\.htmlshowthread.php?tid=$1&action=nextnewest [L,QSA]
RewriteRule ^thread-([0-9]+)-nextoldest\.htmlshowthread.php?tid=$1&action=nextoldest [L,QSA]
RewriteRule ^thread-([0-9]+)-newpost\.htmlshowthread.php?tid=$1&action=newpost [L,QSA]
RewriteRule ^thread-([0-9]+)-post-([0-9]+)\.htmlshowthread.php?tid=$1&pid=$[L,QSA]

RewriteRule ^post-([0-9]+)\.htmlshowthread.php?pid=$[L,QSA]

RewriteRule ^announcement-([0-9]+)\.htmlannouncements.php?aid=$[L,QSA]

RewriteRule ^user-([0-9]+)\.htmlmember.php?action=profile&uid=$[L,QSA]

RewriteRule ^calendar-([0-9]+)\.htmlcalendar.php?calendar=$[L,QSA]
RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.htmlcalendar.php?calendar=$1&year=$2&month=$[L,QSA]
RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.htmlcalendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$[L,QSA]
RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+)\.htmlcalendar.php?action=weekview&calendar=$1&week=$[L,QSA]

RewriteRule ^event-([0-9]+)\.htmlcalendar.php?action=event&eid=$[L,QSA]

<
IfModule mod_env.c>
SetEnv SEO_SUPPORT 1
</IfModule>
</
IfModule>

#
# If Apache is compiled with built in mod_deflade/GZIP support
# then GZIP Javascript, CSS, HTML and XML so they're sent to
# the client faster.
#
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/css text/html application/xhtml+xml text/xml application/xml text/plain text/x-component application/javascript application/x-javascript application/rss+xml application/atom+xml application/json application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject application/font-sfnt application/font-woff application/font-woff2 image/svg+xml image/x-icon
</IfModule>

# Note: You are able to choose a different name in the Admin CP. If you've done that you need to change it here too
<Files "error.log">
Order Deny,Allow
Deny from all
</Files



RE: Forum bringt Fehler 404 - StefanT - 07.06.2018

Deine 1. Zeile ist in der Tat fehlerhaft und entspricht nicht der in der htaccess.txt des MyBB.


RE: Forum bringt Fehler 404 - maiurb - 07.06.2018

(07.06.2018, 11:02)StefanT schrieb: Deine 1. Zeile ist in der Tat fehlerhaft und entspricht nicht der in der htaccess.txt des MyBB.

Ich habe an der Zeile nichts geändert. Wahrscheinlich wird die Datei bei der neuesten Version von MyBB ausgeliefert.


RE: Forum bringt Fehler 404 - frostschutz - 07.06.2018

Da du das rewrite engine on weiter unten stehen hast (wo es auch hingehört), in der ersten Zeile sollten nur die Options stehen.


RE: Forum bringt Fehler 404 - maiurb - 07.06.2018

(07.06.2018, 11:33)frostschutz schrieb: Da du das rewrite engine on weiter unten stehen hast (wo es auch hingehört), in der ersten Zeile sollten nur die Options stehen.

Noch mal, dass ist die Original MyBB Datei aus der Grundinstallation. Wenn das nicht passen sollte, muss die im Installationspaket ausgetauscht/geändert werden.


RE: Forum bringt Fehler 404 - StefanT - 07.06.2018

Nein, das ist definitiv nicht die originale Datei. Falls du mir nicht glaubst, kannst du gerne das MyBB-Paket erneut herunterladen und die Dateien vergleichen: https://www.mybb.de/downloads/


RE: Forum bringt Fehler 404 - maiurb - 07.06.2018

Ich schau es mir mal an.