Permanlinkstruktur & Fehler 403

  • Hallo zusammen :)

    Ich kämpfe seit Wochen mit meinem Blog/dem Server und habe hier auch schon zig Seiten gelesen, die richtige Antwort war für mich aber noch nicht dabei, deshalb habe ich mich jetzt hier registriert.

    Folgendes Problem: Mein Blog "update-blog.de" ist bei Alphahosting gehostet und läuft mit 3.5.1. Leider habe auch ich das Problem mit der Permalinkstruktur, sodass die Beiträge "p117" o.ä. heißen.

    Sobald ich dies auf "Beitragsname" oder "Jahr+Beitragsname" ändere, bekomme ich auf die komplette URL einen 403, also keinen Zugriff mehr. Habe dann einen Freund gefragt, der mir einen "Fix" eingebaut war, der aber ziemlich hässlich war. Mit einem zusätzlichen index.php in der URL funktionierte es dann, war aber nicht zufriedenstellend. (also update-blog.de/index.php/beitragsname).


    Stelle ich es in der Datenbank auf postname, lässt mich die .htaccess Datei nicht mehr rein. Lösche ich die Datei komme ich wieder auf die Seite, aber nach unzähligem hin und her sind jetzt alle Links zu den Beiträgen schrott. Meine .htaccess sieht wie folgt aus:

    [COLOR=#007700][FONT=monospace]<[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]IfModule mod_rewrite[/FONT][/COLOR][COLOR=#007700][FONT=monospace].[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]c[/FONT][/COLOR][COLOR=#007700][FONT=monospace]>
    [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]RewriteEngine On
    RewriteBase
    [/FONT][/COLOR][COLOR=#007700][FONT=monospace]/

    [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]RewriteCond [/FONT][/COLOR][COLOR=#007700][FONT=monospace]%{[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]REQUEST_FILENAME[/FONT][/COLOR][COLOR=#007700][FONT=monospace]} !-[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]f
    RewriteCond
    [/FONT][/COLOR][COLOR=#007700][FONT=monospace]%{[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]REQUEST_FILENAME[/FONT][/COLOR][COLOR=#007700][FONT=monospace]} !-[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]d
    RewriteRule
    [/FONT][/COLOR][COLOR=#007700][FONT=monospace]. /[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]index[/FONT][/COLOR][COLOR=#007700][FONT=monospace].[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]php [/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]L[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]
    </
    [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]IfModule[/FONT][/COLOR][COLOR=#007700][FONT=monospace]>

    [/FONT][/COLOR]
    Ich habe echt keine Ahnung mehr woran es liegen könnte. Freue mich auf eure Hilfe :)

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • Vermutlich läuft das mod_rewrite auf dem Server nicht, bitte deinen Hoster dieses zu aktivieren.

    [size=10]Bitte immer zuerst die Forensuche nutzen und erst danach Deine Fragen hier im Forum stellen, denn sehr vieles wurde schon mehrfach beantwortet. Bitte dabei auch die Forenregeln beachten.
    Kein Support per PN - Fragen gehören ins Forum.[/SIZE]
    [size=8]Wenn du eine weise Antwort verlangst, musst du vernünftig fragen. (Johann Wolfgang von Goethe)[/SIZE]

  • So, gerade alles neu aufgesetzt, vorher Datenbank gelöscht & neu anlegt.

    Direkt auf "/beitragsname/ als URL gestellt, wieder geht nichts :( Auf die Hauptseite kommt man, klickt man dann aber einen Beitrag an kommt sofort wieder "Not found" Fehler. Ist doch echt zum Mäuse melken...

  • gilt das aktivierte mod_rewrite auch für dein Serververzeichnis?

    [size=10]Bitte immer zuerst die Forensuche nutzen und erst danach Deine Fragen hier im Forum stellen, denn sehr vieles wurde schon mehrfach beantwortet. Bitte dabei auch die Forenregeln beachten.
    Kein Support per PN - Fragen gehören ins Forum.[/SIZE]
    [size=8]Wenn du eine weise Antwort verlangst, musst du vernünftig fragen. (Johann Wolfgang von Goethe)[/SIZE]

  • Bin nicht wirklich der Pro bei Servern, aber wenn Du die Abfrage in der htaccess raus nimmst, müsste dann nicht ein Fehler kommen, wenn mode_rewrite nicht läuft?

    Apache Configuration
    [B][COLOR=#ff0000][FONT=monospace][I]<IfModule mod_rewrite.c> 
    [/I][/FONT][/COLOR][/B][COLOR=#0000BB][FONT=monospace][I]RewriteEngine On 
    RewriteBase [/I][/FONT][/COLOR][COLOR=#007700][FONT=monospace][I]/ 
    
    
    [/I][/FONT][/COLOR][COLOR=#0000BB][FONT=monospace][I]RewriteCond [/I][/FONT][/COLOR][COLOR=#007700][FONT=monospace][I]%{[/I][/FONT][/COLOR][COLOR=#0000BB][FONT=monospace][I]REQUEST_FILENAME[/I][/FONT][/COLOR][COLOR=#007700][FONT=monospace][I]} !-[/I][/FONT][/COLOR][COLOR=#0000BB][FONT=monospace][I]f 
    RewriteCond [/I][/FONT][/COLOR][COLOR=#007700][FONT=monospace][I]%{[/I][/FONT][/COLOR][COLOR=#0000BB][FONT=monospace][I]REQUEST_FILENAME[/I][/FONT][/COLOR][COLOR=#007700][FONT=monospace][I]} !-[/I][/FONT][/COLOR][COLOR=#0000BB][FONT=monospace][I]d 
    RewriteRule [/I][/FONT][/COLOR][COLOR=#007700][FONT=monospace][I]. /[/I][/FONT][/COLOR][COLOR=#0000BB][FONT=monospace][I]index[/I][/FONT][/COLOR][COLOR=#007700][FONT=monospace][I].[/I][/FONT][/COLOR][COLOR=#0000BB][FONT=monospace][I]php [/I][/FONT][/COLOR][COLOR=#007700][FONT=monospace][I][[/I][/FONT][/COLOR][COLOR=#0000BB][FONT=monospace][I]L[/I][/FONT][/COLOR][COLOR=#007700][FONT=monospace][I]] 
    [/I][/FONT][/COLOR][B][COLOR=#ff0000][FONT=monospace][I]</IfModule>[/I][/FONT][/COLOR][/B]

    Das Geheimnis des Könnens liegt im Wollen!
    [size=12]Bitte keine Hilfegesuche per PN (auch keine "privaten" Links). Das ist ein öffentliches Forum.[/SIZE]

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!