I’ve successfully migrated to Digital Ocean from Cloudways (was utilizing DO as well).
However, except the homepage every other page shows 404 error. (reference: https://stackoverflow.com/questions/5182534/wordpress-is-giving-me-404-page-not-found-for-all-pages-except-the-homepage)
I’ve looked online and found a couple of solutions:
<Directory> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>
where AllowOverride should be set to All…
I’ve checked that as well - both vHost file for the domain and the apache2.conf file contains that piece of code.
Am I missing something else? Is there any other way to resolve the error?
Additional Info: When I change my site permalinks to default i.e domain.com/?123 (the defaul URL structure of WordPress) - it works fine. That means, the site has been restored perfectly.
P.S: Installed WordPress manually for this domain and I have virtual hosts configured in a 1-click WordPress ubuntu 18.04 droplet.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.