• Resolved christianshg

    (@christianshg)


    Hello together,

    I have built a wordpress site and now wanted to change the default permalink to the post name. Unfortunately this does not work. Apart from the home page, all other pages are no longer accessible (Not Found
    The requested URL was not found on this server).

    I use:
    – Worspress 6.0.2
    – Apache2
    – Ubuntu 22.04 LTS
    – php8.1

    What I have already tried:
    – All plugins disabled
    – Reset the theme to “Twenty Twenty-Two
    – deleted the .htaccess file and created it again
    – Linux updates (system, apache2, php)

    When I try to publish a new page or edit an existing one in that state, I get this error: “Update failed. The response is not a valid JSON response” (translated into English).

    I can’t find any help via googling now unfortunately and hope for support here.

    Greetings from Germany

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator threadi

    (@threadi)

    Did you configure Apache for the vhost to read the htaccess file? To do this you need to set the AllowOverridedirective to All. After that restart Apache.

    Thread Starter christianshg

    (@christianshg)

    @threadi OMG THANK YOU! Such a rookie mistake and that with me as Linux Admin…

    Have a nice day / evening!

    Hi this issue occurs on the site when we need to restrat the appache.
    An .htaccess file makes Apache web server configuration changes on a per-directory basis. This allows you to configure specific areas of a website without having to modify the Apache web server’s primary configuration files. To enable the.htaccess file, you must update your website’s Virtual Hosts file to add an AllowOverride All directive.
    Thanks!

    • This reply was modified 3 years, 8 months ago by jonsonj.
    • This reply was modified 3 years, 8 months ago by jonsonj.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Permalink change not possible (JSON error)’ is closed to new replies.