Cannot login to wp-admin after changing website url
-
Hello, so I might have messed something up (or many things up :p) while trying to change my wordpress url.
I made a wordpress with Hostinger and I wanted to rename the url
from https://testingpages.site/wordpress/
to https://testingpages.site/blog/In order to do that, I went into general setting and had the surprise to discover I couldn’t access my site.
So I attempted different things, like entering the following query in my PHPMyAdmin Database:
UPDATE wp_options SET option_value = replace(option_value, ‘https://testingpages.site/wordpress/’, ‘https://testingpages.site/blog’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;UPDATE wp_posts SET guid = replace(guid, ‘https://testingpages.site/wordpress/’,’https://testingpages.site/blog’);UPDATE wp_posts SET post_content = replace(post_content, ‘https://testingpages.site/wordpress/’, ‘https://testingpages.site/blog’);
UPDATE wp_postmeta SET meta_value = replace(meta_value,’https://testingpages.site/wordpress/’,’https://testingpages.site/blog’);Changing my FTP filename from wordpress to blog, and adding those lines to WP-config:
define(‘WP_HOME’, ‘
https://testingpages.site/blog’);
define(‘WP_SITEURL’, ‘
https://testingpages.site/blog’);Now I can access my website (I think those last 2 steps did it, although I really hope I did not mess anything up with the DB).
Problem is, I am unable to access WP-Admin, the link doesn’t show anymore on the blog page, and while I can access the login form by typing
https://testingpages.site/blog/wp-admin/
which redirects to
any attempt to log-in is unsuccessful – not even a error message.
Site: (email visible only to moderators and staff)/blog/.
WP.com: Unknown
Jetpack: Unknown
Correct account: Unknown -
Hi there,
To fix that please contact Hostinger which is your host. If Hostinger points you to WordPress support, then you’ll need to post in the WordPress.org support forums:
https://wordpress.org/support/forums/
The forum you have posted is for the WordPress.com hosting platform which is different than the WordPress software that your site is using. You can learn more about these differences here:
-
- The topic ‘Cannot login to wp-admin after changing website url’ is closed to new replies.