Support » Plugin: All-in-One WP Migration » All pages 404 NOT FOUND after migration

  • Resolved broncopie


    I am moving my corporate site from one host to a different host.
    The new host is DigitalOcean “Droplet” VPS, (Installed CentOS + LAMP + WordPress).
    I did export by file at the old host.
    I did import by file at the new host.
    I clicked the link to permalinks page, and I clicked the SAVE CHANGES button at the bottom, I see “Permalink structure updated.” at the top, and I click the same button a second time.

    I see that the .htaccess file contains:

    # 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]
    # END WordPress

    But still, only the homepage of my site is working. All the other links to pages result in 404 NOT FOUND. I can see the pages do exist thru the WP admin > Pages, and the permalinks look normal.

    The one thing I had to do was:
    edit /etc/httpd/conf/httpd.conf
    Locate the <Directory /var/www/html> section and change the AllowOverride directive from None to All.
    sudo systemctl restart httpd
    I followed this guide:

    • This topic was modified 1 year, 6 months ago by  broncopie. Reason: Solved
  • The topic ‘All pages 404 NOT FOUND after migration’ is closed to new replies.