• Hey,

    I have the following problem:

    On my page, each subpage is linked as follows: “domain.com/index.php/postname/”. Now I want to use this guide (https://yoast.com/change-wordpress-permalink-structure/) to change my permalink structure.

    Now my problem: As soon as I change the permalink structure to “domain.com/postname/”, all subpages will also be changed, but I still can’t connect to them (The requested URL was not found on this server.). In addition, I can no longer make any changes to pages (updating failed) and also I can´t create more pages (publishing failed).

    I’ve now restored a backup to keep the page working.
    I would be very happy if one of you could help me with this problem.

    Details:

    Wordpress Version: 5.2.2
    Server Distribution: Debian 9
    Web-Service: Apache2

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi there,

    There are a couple of things that could be causing this. First, does your server have permission to write to the .htaccess file? If not, WordPress will give you an error at the bottom of the permalinks page when you try to save changes.

    If that isn’t the issue, the server configuration might need to be modified. The config file is most likely located in

    /etc/apache2/sites-available/

    There should be a section that looks something like this (yours might be a bit different):

    <Directory /var/www/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all
    </Directory>

    The ‘AllowOverride’ parameter should be changed from ‘None’ to ‘All’. This will allow your .htaccess file to take effect.

    This solution worked for me before. Let me know if it works for you.

    • This reply was modified 6 years, 11 months ago by jimmyneutron8. Reason: formatting
Viewing 1 replies (of 1 total)

The topic ‘Changing permalink structure’ is closed to new replies.