This was an issue I have faced while setting up this blog. I was getting 404 errors for all the post links in this blog when selecting the
First thing I tried was to regenerate the .htaccess file. Removed the existing .htaccess file in the WordPress root folder. Regenerated the file by switching the permalink again. That
The directory tag is required in
Example
<Directory /var/www/html/devopslife.io/>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Thanks to this digitalocean thread