Question
After migrating wordpress to digital ocean, only homepage and admin work
Hello, I have been having an issue with my WordPress site that I have just migrated from a local server. The homepage and the admin pages work, but none of the other pages work. they all return a 404 not found error. I have checked that the permalinks are properly set up. I can edit the pages, and it displays the proper permalinks on the admin side. This is my htaccess file
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
is there anything wrong here?
I’ve enabled mod_rewrite in apache. Any suggestions are greatly appreciated!
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.
×