Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Wie man den 404-Fehler bei WordPress-Beiträgen behebt (Schritt für Schritt)

Hinweis der Redaktion: Wir erhalten eine Provision für Partnerlinks auf WPBeginner. Die Provisionen haben keinen Einfluss auf die Meinung oder Bewertung unserer Redakteure. Erfahre mehr über Redaktioneller Prozess.

Geben Ihre WordPress-Beiträge auf Ihrer Website einen 404-Fehler zurück?

Dieser Fehler tritt auf, wenn Sie auf Ihren WordPress-Administrationsbereich und Ihr Blog zugreifen können, aber wenn Sie versuchen, einen Beitrag zu öffnen, wird „404 Not Found“ angezeigt.

In diesem Artikel zeigen wir Ihnen, wie Sie WordPress-Beiträge mit 404-Fehlern beheben können.

How to fix WordPress posts returning 404 error

Was verursacht den WordPress Posts Returning 404 Fehler?

WordPress ist ein leistungsfähiges Content-Management-System (CMS), aber eine kleine Änderung kann manchmal dazu führen, dass Ihre WordPress-Website nicht mehr zugänglich ist.

In manchen Fällen können Sie nicht auf den WordPress-Administrationsbereich oder die Website selbst zugreifen, z. B. bei einem internen Serverfehler oder einem Fehler beim Herstellen einer Datenbankverbindung.

Wenn Ihre WordPress-Beiträge hingegen 404-Fehler zurückgeben, können Sie immer noch auf Ihren Verwaltungsbereich zugreifen und Ihre WordPress-Website auf dem Frontend sehen. Wenn Sie dann auf einen Blogeintrag klicken, wird die Meldung „404 Not Found“ angezeigt.

Obwohl diese Fehlermeldung beängstigend sein kann, bedeutet sie nicht, dass Sie Ihre WordPress-Beiträge verloren haben. Stattdessen wurde wahrscheinlich Ihre .htaccess-Datei gelöscht, oder es ist etwas mit den Rewrite-Regeln in Ihrem Blog schiefgegangen.

Sehen wir uns also an, wie man WordPress-Beiträge mit 404-Fehlern beheben kann. Sie können die Links unten verwenden, um direkt zu den verschiedenen Lösungen zu springen:

Video-Anleitung

Subscribe to WPBeginner

Wenn Sie eine schriftliche Anleitung bevorzugen, dann lesen Sie einfach weiter.

WordPress-Beiträge können aufgrund von Problemen mit Rewrite-Regeln in Ihrer .htaccess-Datei 404-Fehler zurückgeben. In den meisten Fällen können Sie das Problem beheben, indem Sie Ihre Permalink-Einstellungen aktualisieren.

Gehen Sie einfach zu Einstellungen “ Permalinks in Ihrem WordPress-Admin und klicken Sie auf die Schaltfläche „Änderungen speichern“.

Check Permalinks

Es ist nicht notwendig, die Permalink-Einstellungen selbst zu ändern. Dadurch werden Ihre Permalink-Einstellungen aktualisiert und die Rewrite-Regeln geleert.

In den meisten Fällen behebt diese Lösung den 404-Fehler bei WordPress-Beiträgen. Wenn es bei Ihnen jedoch nicht funktioniert, müssen Sie wahrscheinlich Ihre .htaccess-Datei manuell aktualisieren.

Methode 2: Aktualisieren der WordPress-.htaccess-Datei

Bevor Sie beginnen, sollten Sie eine Sicherungskopie Ihrer WordPress.htaccess-Datei erstellen. Wenn etwas schief geht, können Sie die ursprüngliche Datei leicht wiederherstellen.

Nun müssen Sie eine Verbindung zu Ihrem Server herstellen, indem Sie einen FTP-Client wie FileZilla oder die Dateimanager-App in Ihrem WordPress-Hosting-Dashboard verwenden.

Als Nächstes müssen Sie die Datei .htaccess finden und bearbeiten, die sich am selben Ort wie die Ordner /wp-content/ und /wp-includes/ befindet.

Klicken Sie einfach mit der rechten Maustaste auf die Datei und wählen Sie „Dateiberechtigungen“.

.htaccess file permissions

Sie können die Datei schreibbar machen, indem Sie ihre Berechtigungen auf 666 ändern.

Geben Sie einfach „666“ in das Feld „Numerischer Wert“ ein und klicken Sie dann auf „OK“.

Change file attributes for the .htaccess file to 666

Dann müssen Sie die Schritte der ersten Methode unseres Tutorials wiederholen. Vergessen Sie danach nicht, die Berechtigungen wieder auf 660 zu ändern.

Sie können die Datei auch bearbeiten und ihr Code hinzufügen.

Edit .htaccess file

Nachdem Sie die .htaccess-Datei mit einem Texteditor geöffnet haben, fügen Sie einfach diesen Code ein:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Methode 3: Kontaktieren Sie Ihren Hosting-Anbieter

Wenn keine der oben genannten Lösungen das Problem der 404-Fehler bei WordPress-Beiträgen behoben hat, empfehlen wir Ihnen, sich an Ihren WordPress-Hosting-Anbieter zu wenden. Möglicherweise liegt ein Fehler auf dessen Seite vor, oder er kann Ihnen bei der Fehlerbehebung helfen.

Bitte lesen Sie auch unseren Leitfaden, wie Sie richtig nach WordPress-Support fragen und diesen auch erhalten.

Methode 4: WordPress-Beiträge mit 404-Fehler auf lokalen Servern reparieren

Wenn Sie einen lokalen Server zu Testzwecken verwenden, müssen Sie mod_rewrite in der Apache-Konfiguration Ihrer MAMP-, WAMP- oder XAMPP-Site aktivieren.

Dies ermöglicht WordPress, saubere URLs zu generieren und den 404-Fehler für Beiträge und Seiten auf Ihrem lokalen Server zu vermeiden.

Wie Sie dies tun, hängt von der von Ihnen verwendeten Plattform ab. Benutzer von XAMPP können ihr Kontrollpanel öffnen und unter „Aktionen“ auf die Schaltfläche „Konfig“ klicken. Wählen Sie dann „Apache (httpd.conf)“.

The Apache (httpd.conf) menu on XAMPP

Als Nächstes müssen Sie diese Zeile #LoadModule rewrite_module modules/mod_rewrite.so finden und das ‚#‘ entfernen, um sie zu entkommentieren.

Dadurch wird mod_rewrite geladen.

Finding the rewrite_module on httpd.conf file

Suchen Sie dann alle Instanzen von AllowOverride None und ändern Sie sie in AllowOverride All.

Der Wert „Alle“ bedeutet, dass alle Direktiven überschrieben werden können.

Changing AllowOverride None to AllowOverride All

Danach können Sie die Datei httpd.conf speichern und schließen. Danach klicken Sie im XAMPP-Kontrollfeld auf „Stop“ für das Apache-Modul und erneut auf „Start“, um es neu zu starten.

Gehen Sie dann zurück zu Ihrem Admin-Dashboard, um zu sehen, ob Ihre Permalinks funktionieren.

Wir hoffen, dass dieser Artikel Ihnen geholfen hat, die 404-Fehler in WordPress zu beheben. Vielleicht interessieren Sie sich auch für unseren Leitfaden zu den häufigsten WordPress-Fehlern und deren Behebung sowie für unsere Expertenauswahl der besten WordPress-Plugins zur Erweiterung Ihrer Website.

Wenn Ihnen dieser Artikel gefallen hat, dann abonnieren Sie bitte unseren YouTube-Kanal für WordPress-Videotutorials. Sie können uns auch auf Twitter und Facebook finden.

Offenlegung: Unsere Inhalte werden von unseren Lesern unterstützt. Das bedeutet, dass wir möglicherweise eine Provision verdienen, wenn Sie auf einige unserer Links klicken. Mehr dazu erfahren Sie unter Wie WPBeginner finanziert wird , warum das wichtig ist und wie Sie uns unterstützen können. Hier finden Sie unseren redaktionellen Prozess .

Das ultimative WordPress Toolkit

Erhalte KOSTENLOSEN Zugang zu unserem Toolkit - eine Sammlung von WordPress-bezogenen Produkten und Ressourcen, die jeder Profi haben sollte!

Reader Interactions

768 KommentareEine Antwort hinterlassen

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Moinuddin Waheed says

    This is one of the most occuring error for wordpress websites.
    this is really frustrating as it seems to get stuck and leading to nowhere.
    I have solved the issue by saving the permalink.
    I didn’t know about the other steps.
    I really appreciate the efforts to make it holistic by including all the steps to resolve this error.

  3. mohadese esmaeeli says

    Hello. The 404 error can be really frustrating, and we’ve all encountered it at least once. The situation becomes challenging when everything appears to be correct, there are no broken links, yet the 404 error persists. I faced this issue once, and it was resolved by adjusting the permalink settings.

  4. amir says

    Hi
    in my case, a plugin named as „WebP Express“ create a htaccess file in uploads folder that restrict my access to some images.
    try rename or remove it and see if the problem still exist.

  5. Eriab Nsereko says

    Syed & the team u saved my whole entire day! My homepage was actually loading well.. but the other pages couldn’t load. So, I pasted the code in my .htaccess file and it did absolutely like magic.

    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress

  6. David Helleskov Fønsbo says

    Thanks – None of the suggested solutions did work for me. Looks like the typical permalink error but it isn’t.

    Saving permalink again does not create a new .htaccess.

    • WPBeginner Support says

      If none of the methods in our guide are working for you, please reach out to your hosting provider and they should be able to help fix the issue.

      Admin

  7. Frank Thomas says

    Thank you for this post. I was missing the .htaccess files after moving sites and of course the wordpress code in them. I’ve replaced it all and voila! We are live at 5. Thanks.

    • WPBeginner Support says

      If none of the recommendations from our guide could solve your error, please reach out to your hosting provider and they should be able to take a look and help!

      Admin

  8. Harald says

    Hi,
    saving permalink helped me too, but it keeps returning over and over again after some days.
    I have no clue what causes it.

    • WPBeginner Support says

      If it is a constantly recurring error, we would recommend reaching out to your hosting provider and they can either look at their error logs for the site or keep an eye on your site for the specific error causing the problem.

      Admin

  9. Jon says

    For me the problem was I forced a redirect from mydomain.com to ww.mydomain.com, but in wordpress the site URL said mydomain.com. After changing the redirection to ww.mydomain.com -> mydomain.com everything worked.

  10. Samir K Al Busaidy says

    I was panicking and thinking that my website was hacked or had malware. As I read your writing and you wrote not to worry, I began to relax. The first option (permalink) worked for me immediately…
    Thanks :-)

  11. Max Legault says

    On IIS there is no .htaccess file but the key is still the permalink settings. Just hitting Save didn’t fix it but changing the Custom Structure to Plain worked like a charm. Thanks for the push in the right direction.

  12. Steve Barnard says

    Dang! Can’t thank you enough for this – super simple fix worked perfectly – just hit save changes on the permalinks settings page and viola‘ – my pages are back. Thank you!!

  13. kris says

    honestly thank you so much! without fail your site always comes thru with answers that work. thank you so much!
    (now I just wish I knew what caused it to get out of whack in the first place. oh well.)

    • WPBeginner Support says

      If none of our methods in this guide worked for you, we would recommend reaching out to the support for your hosting provider to ensure there is not an error on their end.

      Admin

  14. Duane Wiese says

    None of the above suggestions worked so I did some further searching. I came across someone who suggested switching off the mod security under the security section in cpanel.

    I tried this and it worked. I also tested it by switching it back on after a change and then trying another change and BAM, 404 error.

    • WPBeginner Support says

      Thanks for sharing this should someone else run into this issue. Not every host allows access to that specific file but if you reach out to your host they can normally disable or change it for you :)

      Admin

    • Dave Emma says

      Disabling ModSecurity fixed mine.
      I actually tried permalinks plus rewriting .htaccess, but that didn’t solve my problem. I’m glad I read comments. Many thanks guys for sharing.

  15. Elango says

    Thanks, it was so simple and the problem solved. No other pages were visible after I migrated to another server. I added the lines to .htaccess file and uploaded the same. Now all the pages are being displays without the 404 error and I am able to access my WP dashboard too. Thanks a lot.

  16. Islombek says

    My posts are showing 404 error after installing ssl certificate. How can I fix it? I tried everything mentioned above, but none helped.

  17. Dennis Yildirim says

    My .htaccess file is exactly the same with that code but nevertheless I did whatever in the post. did not work, saved permalinks through admin console, did not work. Manually edits, no luck. Deleted the .htaccess and recreated it by saving it from admin console, again did not work. Nothing works. Don’t know how did it even work on others?

    • WPBeginner Support says

      If none of the recommendations from our article were able to help we would recommend reaching out to your hosting provider as that can be a sign that there is an issue on your host’s end.

      Admin

  18. Kuldeep Singh says

    You saved my day. I got this issue after transferring my site from one hosting to another. I couldn’t believe it was so simple to fix the issue. Many Thanks WpBeginner team!

  19. Rick says

    I never reply to these things but just wanted to jump on here and say thank you! I’ve been having this issue a lot and having to wait ages for support to help me and so finally had a hunt around, found this, and can now fix it myself. You legend!! Much appreciated

  20. Afan says

    One of solutions to correct the issue with the Permalink change is simply delete the .htaccess file – WordPress will recreate it again automatically.
    But, before you delete it, copy the file on your computer, just in case…

    • WPBeginner Support says

      If someone has customized their htaccess file then that would be a good idea. Otherwise, WordPress should auto regenerate the default information in the file where most wouldn’t need to worry.

      Admin

  21. James Monroe says

    Saving the permalinks settings worked perfectly. Such a simple solution to what looked like a serious problem! Thank you!

  22. Muhammad Zeeshan says

    I’m facing 404 error while adding new plugin , theme , editing any post or product, editing any page ..
    I’ve try to save permalinks and also tried to change .htaccess .. But not this given solution is working for me.

    • WPBeginner Support says

      You would want to reach out to your hosting provider to see if you are running into any errors on their server’s end.

      Admin

    • WPBeginner Support says

      You would use the htaccess method from this guide or reach out to your hosting provider to be able to assist you

      Admin

  23. Mihir says

    I’m facing a problem where this is extension of my own website after every page and I don’t know how to fix it.

    • WPBeginner Support says

      You would likely want to check under Settings>Permalinks to ensure everything is set correctly there

      Admin

Eine Antwort hinterlassen

Danke, dass du einen Kommentar hinterlassen möchtest. Bitte beachte, dass alle Kommentare nach unseren kommentarpolitik moderiert werden und deine E-Mail-Adresse NICHT veröffentlicht wird. Bitte verwende KEINE Schlüsselwörter im Namensfeld. Lass uns ein persönliches und sinnvolles Gespräch führen.