No login after change from subdomain to subfolder
-
I switched my existing WP installation to Multi-site and was able to adjust settings. By default it allows subdomains as the site is a bit older. So far so good.
Now I want to switch from subdomain to subfolder and adapted the config file accordingly (from “define( ‘SUBDOMAIN_INSTALL’, true );” to “define( ‘SUBDOMAIN_INSTALL’, false );”.
I then change the htaccess to read like this:
BEGIN WordPress The directives (lines) between “BEGIN WordPress” and “END WordPress” are dynamically generated, and should only be modified via WordPress filters. Any changes to the directives between these markers will be overwritten.
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L] uploaded filesRewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).) $1 [L] RewriteRule ^[_0-9a-zA-Z-]+/(..php)$ $1 [L]
RewriteRule . index.php [L] END WordPressThe result: I can not login, as WP tells me I don’t have the right password (despite having SuperAdmin privileges).
Not feeling too SuperAdmin right now, as I don’t know how to fix this. I run WP 6.5.2 and would appreciate some guidance.
Thank you very much.
- The topic ‘No login after change from subdomain to subfolder’ is closed to new replies.