• Howdy,

    I finished creating my new WordPress site in a “staging” subdomain.
    Then without thinking, I changed both “WordPress Address” & “Site Address” URLs to my root domain in general settings ??

    I managed to get the site back up and running by moving the content to the root and using the Search & Replace DB tool from Interconnect.it (great tool, by the way)

    The home page and all sub pages work fine, but I have lost access to wp-admin.

    <my domain>/wp-login.php?redirect_to=https%3A%2F%2F<my domain>%2Fwp-admin%2F&reauth=1 is in the address bar, but it returns “404 Not Found The resource requested could not be found on this server!”

    Help!?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Is the URL displayed the staging domain or the live domain? My guess is that you are calling a domain that does not point to the correct directory. Unfortunately, without a link to your page, it is not possible to judge this more accurately. If necessary, it would make sense to contact your hoster.

    Moderator bcworkz

    (@bcworkz)

    Did you remember to copy the WP rewrite rules in staging .htaccess to domain root’s .htaccess? Not doing so would cause such a “hard” 404. You should also find that the sub-page permalinks are now the “plain” (example.com/?p=123) kind and not the “pretty” (example.com/hello-world/) kind.

    Without the rewrite rules, you should still be able to access the admin area by adding index.php to the redirect_to login URL parameter (add between wp-admin%2F and &reauth=1 ).

    Thread Starter fitwizard

    (@fitwizard)

    Problem fixed!

    Somehow /wp-login.php did not copy from /staging to root
    File copied and wp-admin seems to work fine now.

    Will post update if there are any more issues.

    Thanks to all responders ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp-admin – 404 error after migration’ is closed to new replies.