Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Changed Wordress Address URL Accidently

By far the easiest fix is to edit wp-config.php to define two constants. (s)FTP into your site, or use a host supplied file manager, and add:

define( 'WP_SITEURL', 'http://www.abc.com/folder' );
define( 'WP_HOME',    'http://www.abc.com/folder' );

Those will be used instead of the information in the database. That will get your site up and running again. You won’t be able to edit the URLs from the back-end so long as that is in place but the site should run just fine. I have even seen argument that you get a slight performance increase but have never tried to verify that claim.

Once the site is up, you can get into the database and fix the incorrect values if you’d like. There are instructions in the Codex that really boil down to:

  1. Backup
  2. Open your database via PhpMyAdmin, or similar tool
  3. Navigate to the *_options table
  4. Edit the value for key ‘siteurl’
  5. Edit the value for key ‘home’

Related Posts:

  1. Change register form action url
  2. How To Change Wp Register/Login URL Permanently To My Custom Page
  3. redirect_to not Including Hashtag from URL
  4. Remember me doesn’t work with www?
  5. Trim the repeated value in URL
  6. Can’t access wordpress mgt dashboard until propogation finished?
  7. Login page ERROR: Cookies are blocked due to unexpected output
  8. Separate registration and login for different roles
  9. How reduce wordpress login session timeout time?
  10. What is $interim_login?
  11. Synchronize WordPress user accounts across multiple domains and installations without using WordPress MU
  12. How do I change the logo on the login page?
  13. Why does WordPress hide the reset password key from the URL?
  14. How to fake a WordPress login?
  15. Receiving “This content cannot be displayed in a frame” error on login page
  16. Getting “Cookies are blocked or not supported by your browser” on login page
  17. wp-login.php redirecting to HTTPS
  18. How do I extend auto logout on idle OR redirect inline popup
  19. Positioning the “Lost your password?” and “← Back to Site”
  20. Warning: Cannot modify header information – headers already sent
  21. Validate Custom Login field
  22. How can I allow access to two user accounts using one login?
  23. How to set different cookies for logged in admin users and logged in non admin users?
  24. Is it possible a one click user registration with Facebook or Twitter (or other Social Networks)?
  25. How to shutdown wordpress login temporarily
  26. Restricting frontend acess based on user role otherwise redirect to login form
  27. Where is the query and form in wp-login.php?
  28. How to edit .htaccess to change site’s login url?
  29. How do I force “users must be registered and logged in” on subsites?
  30. redirect to homepage after login
  31. “lambda_xx” on all wordpress login pages
  32. How to allow only certain users to login
  33. Login redirects and query strings
  34. wp-admin folder, brute force, and password protection
  35. Allow Users Only Edit Their Profile?
  36. WordPress login problem
  37. Skip login form wp-login.php when already logged in,
  38. Redirect wp-login
  39. Redirect user to original url after login?
  40. Show reCaptcha on Custom Frontend Login & Register Form [closed]
  41. Auto Login After Registration
  42. Notifications when someone is on the site
  43. How can I prevent anyone from logging into a WordPress failover site?
  44. How to password-protect everything except the logo
  45. Generate email on meta value update
  46. Login Redirect Error – $user->roles
  47. WordPress login security
  48. Why isn’t the login page rate limited by default?
  49. how can redirect sign in and sign out link front-end page rather then wp-login .php in comment form in wordpress
  50. Input sanitation
  51. Advice on redirect to lock site from unauthorized users
  52. Custom code needed to be executed on login and logout
  53. Sending new registration meta values to admin by email
  54. Single Time Login HELP
  55. Allow Access to Home Page and Login Screen but Nothing Else (unless logged in)
  56. Error on WordPress Login
  57. Reloading page with a query string upon login for admins
  58. force login loophole
  59. Alert Message through email or phone(Message)
  60. Custom login page problem!
  61. Looking up WordPress account information from Host or php files
  62. Get WordPress login functions without printing anything
  63. Multiple issues with Ajax login function due to browsers and cookies
  64. URL with login details included for public members
  65. woocommerce store login not working at first time
  66. How is it possible to current user info on page in WordPress?
  67. Trouble when I try to connect to WordPress
  68. Custom failed login error messages for users based on user role?
  69. Recognize custom login page as wp-login.php
  70. Set logged in user based on API response
  71. Can’t login to wordpress, got ERR_EMPTY_RESPONSE after a few minutes
  72. wp_signon works localhost but not wokrs https site
  73. how to add social login option in wordpress
  74. Allow log in to the dashboard only from specific gadget?
  75. Why deleting/removing cookies in WordPress does not log me out from admin?
  76. How to use google api for wordpress login
  77. Avoiding accidentally creating a second account at “Or log in with your existing social profile”
  78. Can we start session from another php site to wordpress blog site?
  79. display last login date in the frontend
  80. How user should automatically activated and go for login?
  81. How to lock WordPress front-end with login and password?
  82. Site is not loading after relogin attempts on SSL
  83. Log in to wordpress after executing another form function
  84. WordPress keeps redirecting to an unsecure connection?
  85. A way to redirect users when they log in based on their current page
  86. Webpage not found upon entering wrong username and password on custom login form?
  87. changing WordPress login page
  88. Where do I find “log in” and “register” link which are located on the top right corner?
  89. Check to see if there a wordpress user account and create one if not outside of wordpress
  90. User not logged first time I open the homepage
  91. How to force login after user browses for a few minutes or browses a few pages?
  92. WordPress Login Box horizontal at the top.
  93. How to limit user to login only once per session
  94. How to make WordPress keep me signed in? [duplicate]
  95. how to add custom word press regisration form in word press 3.5 with out module [closed]
  96. Warning-session start errors and cannot login to administer
  97. issue with my wp site after login
  98. How can I automatically change directory on ssh login?
  99. How to create a fully functional user registration in WordPress?
  100. How to remove without touching the pluggable.php the wordpress_logged_in cookie to show the username on login?
Categories login Tags login, urls
Load random posts without refreshing page (jQuery)?
Unable to get to the admin panel

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress