• Resolved Derda

    (@derda)


    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 files

    RewriteRule ^([_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 WordPress

    The 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.

    • This topic was modified 7 months ago by Derda.
Viewing 1 replies (of 1 total)
  • Thread Starter Derda

    (@derda)

    I solved it with the help of google gemini. the debug log showed a possible issue with a plugin. turning it off solved the issue.

Viewing 1 replies (of 1 total)
  • The topic ‘No login after change from subdomain to subfolder’ is closed to new replies.