• socialink

    (@socialink)


    Hi all,
    I’m sorry to post about a problem I see often, but I’m tearing my hair out! I can’t access wp-admin (nor wp-admin/network.php) and images that are uploaded on my second blog are not being mapped correctly. I moved from a subfolder install (ON A SUBDOMAIN (eg staging.myserver.com/blog1, staging.myserver.com/blog2 to http://www.newserver.com/blog1) and have followed every step including migrating, using search&replace tool.. Is the problem my .htaccess, which is this:

    # BEGIN WordPress
    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

    Please help, thanks

Viewing 1 replies (of 1 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    and have followed every step including migrating, using search&replace tool.

    Which steps did you follow?

    If possible, would you link to where you got them. Without knowing what these nebulous steps told you to do, the best we can say is ‘You didn’t edit everything correctly in your Database.’

    (By the way, check the wp-config.php, and see what these are set to:

    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'example.com' );
    define( 'PATH_CURRENT_SITE', '/' );

Viewing 1 replies (of 1 total)
  • The topic ‘cliched problem about wp-admin access and migration – moved FROM subdomain to ro’ is closed to new replies.