WordPress can’t login to wp-admin after moving site to subfolder

Solution:

The conflict arises due to incorrect .htaccess. Put the .htaccess file in the root folder and original index.php file copy to the subfolder. without edit require( dirname( __FILE__ ) . '/wp-blog-header.php' ); . Modify the .htaccess for the WordPress site in the subdirectory to include the subfolder name. For example:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /subdirectory/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /subdirectory/index.php [L]
</IfModule>
# END WordPress