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

  • Resolved broncopie

    (@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]
    </IfModule>
    
    # 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.

    UPDATE – SOLVED
    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: https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_rewrite-for-apache-on-centos-7#step-3-%E2%80%93-setting-up-a-htaccess-file

    • This topic was modified 1 month, 3 weeks ago by  broncopie. Reason: Solved
  • You must be logged in to reply to this topic.