Moved WP directory, can't access admin
-
Hi guys,
I developed a WP site at domainname.com/new. Now I have copied everything from /new into the root directory. The site is somewhat functioning properly, but I can’t login to wp-admin.
If I go to the OLD URL, domainname.com/new/wp-admin, I can log in, but then once I change my site URL in the settings to domainname.com (take out the /new), then it redirects to domainname.com/wp-login.php. When I try to login there with the same u/p, it says that I have the wrong u/p. So it is impossible to login from there.
I tried many of the things posted on the forums, and nothing seems to work. I also tried hard-coding the site URL in wp-login.php via
//FIXME: do comment/remove these hack lines. (once the database is updated)
update_option(‘siteurl’, ‘https://www.domainname.net’ );
update_option(‘home’, ‘https://www.domainname.net’ );but it is still broken.
Please help asap as this is for a client ??
Oh also, I can not access the database to go in and change things (I know, it sucks).
Thank you,
H
- The topic ‘Moved WP directory, can't access admin’ is closed to new replies.