I am working locally with wordpress installation using Xampp, after using vhosts and changing wordpress options home and siteurl to wordpressurl.site , my website has been broken stylesheets and scripts are showing 404 errors ; also I can't access to wp-admin Do anyone has an idea about this ?

I am using :

Windows 10 Xampp

Thanks in advance

  • it looks like you told XAMPP to use a domain but did you let your computer/Windows know? Did you update your hosts file? When you get a 404 what's the URL it's using and what happens when you go there yourself? Note that just because you changed the home/site url doesn't mean the URL changed everywhere else in the database too
    – Tom J Nowell
    Jul 30, 2022 at 18:59

1 Answer 1


May be would be helpful for other person in wp-config.php

define('WP_SITEURL', 'http://monurl.site');
define('WP_HOME', 'http://monurl.site');

It has take a time before changes take effect

  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Aug 13, 2022 at 0:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.