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 non default permalink structure with SSL.
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 didnt work for me. The fix was something with the web sever level. Finally, I found the fix.
The directory tag is required in 
Example
<virtualhost>
    <Directory /var/www/html/devopslife.io/>
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost></virtualhost>
Thanks to this digitalocean thread
  
  
  
  Last Modified: