If you have Accidentally Changed your WordPress site URL or 404 ERROR “The requested URL /wp-login.php was not found on this server “

edit wp-login.php file

——————–
require( dirname(__FILE__) . ‘/wp-load.php’ );
//FIXME: do comment/remove these hack lines. (once the database is updated)
update_option(‘siteurl’, ‘https://iserversupport.com‘ );
update_option(‘home’, ‘https://iserversupport.com‘ );

One thought on “If you have Accidentally Changed your WordPress site URL or 404 ERROR “The requested URL /wp-login.php was not found on this server “

  1. Alternatively you can do it via database.

    1. Login into cPanel > phyMyAdmin
    2. Select appropriate database (other than information_schema)
    3. Select wp_option table (the table prefix wp_ might be different)
    4. Under the option_name field verify siteurl and home rows. Mostly siteurl missed the correct URL path.

Leave a Reply

Your email address will not be published. Required fields are marked *