• Resolved nbi1

    (@nbi1)


    Using the “Duplicator” addon I migrated a working site to another server. There were no errors/warnings during the Duplicator package generation and deployment. WordPress and PHP versions are the same on both hosts. However only the landing page is displayed. Navigating to any other page on the site results in a 404 (not found) error. Yes, I tried the Permalinks fix (setting and resetting the permalink path format), but it had no effect. I noticed the Dashboard’s “site health” shows:

    The REST API call gave the following unexpected result: (404)
    Not Found

    The requested URL /wp-json/wp/v2/types/post was not found on this server.

    REST is perfectly ok on the source host. I’m stumped by these problems.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter nbi1

    (@nbi1)

    PROBLEM SOLVED!!

    It was an apache2 misconfiguration (I thought Duplicator looks at the apache2 config?).

    In /etc/apache2/apache2.conf:

    AllowOverride None

    needs to change to

    AllowOverride All

    However – now that I’m checking on the source host the relevant lines are still “AllowOverride None” ?! I’m totally perplexed by this. Is there another config file that is overriding the behavior of this one? Well I certainly can’t blame Duplicator on this one, AFAIK it did the right thing, but that wasn’t good enough.

    Thanks for the update!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘REST API broken and 404 errors after site migration’ is closed to new replies.