Hi,
I changed my wodrpress URL manually and after then i saved and loged out from admin panel . now i can't login to my wordpress Admin page after changing The URL 's and whenever i want to log in it redirects to other page that i changed in URL . now i can't login to Admin page to correct URL's . what should i do to solve this problem .

Thanks so much ,

Dani AI

Generated

changed the Site/WordPress Address and is now being bounced to the new URL. correctly pointed to a DB fix and correctly mentioned forcing values in config.php — both are valid, but both require server/DB access. Since no access is currently available, the fastest path is to have the hosting provider apply a rollback or a small DB/config change on behalf of the account owner.

Why this locks the admin out: WordPress keeps two options that define site URLs; they control admin link generation and the cookie domain. If those values point at a different host (or an unreachable/incorrect domain), wp-login.php will redirect and authentication cookies won’t match. A plugin or .htaccess redirect can compound the effect. A quick non-invasive check is to try the original domain in a private/incognito browser window to rule out local caching, and confirm DNS points to the expected host.

Concrete fixes to give to hosting support (replace example.com and adjust table prefix if it is not wp_):

Run this SQL to set both options back:

UPDATE `wp_options`
SET `option_value` = 'http://example.com'
WHERE `option_name` IN ('siteurl','home');

Or, if WP-CLI is available:

wp option update home  'http://example.com'
wp option update siteurl 'http://example.com'

If the host can edit files but not the DB, ask them to temporarily add a short functions.php snippet to create an admin user (remove it immediately after use). Always request a full file+DB backup before any change.

Additional notes: confirm the real DB table prefix, verify whether the site is a multisite (different steps), and if hosting support is unwilling, contact the domain registrar or payment proof channels to regain account control. After access is restored, remove any temporary admin account or snippets and correct the URLs from Settings -> General.

Recommended Answers

All 4 Replies

Do you have access to the database?

First thing to do is to login into the database. You should get the login and password of the database by checking the config.php file.

/** MySQL database password */
define('DB_PASSWORD', 'xxxxxxxxx');

/** MySQL hostname */
define('DB_HOST', 'xxxxxxxxxx');

Use PHPMyAdmin or mysql. Look for the fiels "user_login" in the wp_users table.

There should be a username there and a password(Stored as MD5 hash for security purposes)

No ,I don't have any access to server and database .
Is there any other solution for solving this issue ?

please help me to solve this problem .
It's very important for me as soon as possible to find a better solution to solve this issue .I must log in admin panel to improve my site .

Please give us more information. If you can login through FTP/SSH then you should be able to edit the config file and you can change the value of WP_SITEURL, that should fix the problem:

define( 'WP_SITEURL', '' );

Reference:

If you cannot access in any way, then you have to contact the hosting company assistance.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.