• kdesmedt

    (@kdesmedt)


    I migrated a WordPress website from a production server to a local MAMP installation.

    The homepage opens without problems, but for all other pages I get a 404 error:
    “The requested URL /index.php was not found on this server.”

    I already changed the home url to the local one but I cannot log in to reset permalinks.

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    If you’re sure you’ve changed both siteurl + home to the correct addresses then maybe the .htaccess has some extra rules so a reset might worth a try. Also sometimes cache plugins etc don’t play well on migrations, if you have any I’d suggest renaming their folders so they get automatically disabled.

    Thread Starter kdesmedt

    (@kdesmedt)

    I finally got it working by changing the .htaccess file. But logging in still does not work: wp-login.php creates a 500 error.

    This is my .htaccess file:
    ——
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
    <Files “index.php”>
    AcceptPathInfo On
    </Files>
    </IfModule>
    ——

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Migration 404 Errors’ is closed to new replies.