WordPress permalinks 404 when set to ‘Post Name’

As per my own experience with this very website, I had the issue where after enabling SSL, my permalinks stopped working.

Turns out, the default ssl.conf site config file from Apache, had the <Directory /> settings set to not work with permalinks

To fix this, edit your site’s config file:
nano /etc/apache2/sites-enabled/yourwebsite.conf

Ensure the following areas are configured as:

        DocumentRoot /var/www/html/wordpress/
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /var/www/html/wordpress/>
                Options FollowSymLinks
                AllowOverride All
        </Directory>

Restart your apache2 service:
systemctl restart apache2.service

Give your blog a hard refresh (Ctrl + F5) and try access one of your posts once again.

Good luck!

Leave a Reply

Your email address will not be published. Required fields are marked *