Support » Fixing WordPress » WP works after migration & directory change but can’t login

Viewing 3 replies - 1 through 3 (of 3 total)
  • Joy

    (@joyously)

    Did you copy the whole file structure to the new location?
    If so, you likely copied the index.php file and .htaccess file that you had to modify when you had it in a subfolder. In the codex page linked from Settings > General
    https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
    it tells you what to change. You need to make sure you undo those few changes.

    I did copy the entire file structure and the mysql db. I removed all of the file rewrite code from the .htaccess file. I needed to do that to get the site up.

    The index.php files in the base directory and wp-admin are stock. I hadn’t modified either.

    UPDATE: I just removed the .htacccess and was able to log in with wp-login.php. So thanks, Joy, for getting me to look at the .htaccess file again.

    Resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP works after migration & directory change but can’t login’ is closed to new replies.