Search code examples
phpwordpressurlhttp-status-code-404config

wordpress site requesting to wrong url


This website was in one server, and that server failed, so an automatic backup has made. the problem is that now it looks like a lot of files are missing, if I check the console in the browser there is a lot of 404 errors, and the requested URL is wrong.

Is there a kind of configuration file in which I can set the url that wordpress should use to request the files?

Update: Only the .js, .css and .png files are wrong requested, the .php and .html files are fine.


Solution

  • I fixed it, the file I was searching for is wp-config.php, and the line that did the trick is

    define('WP_SITEURL', 'http://example.com');
    

    I don't know what was the problem, but I basically solved it overwriting that config variable.