• mselvaraj

    (@mselvaraj)


    Hi,

    I tried to enable multisite for my blog. After enabling and adding the below code to wp-config.php and .htaccess. I am getting 404/webpage has redirect loop.

    wp-config.php code:

    define('WP_ALLOW_MULTISITE', true);
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'www.myblogsite.com');
    define('PATH_CURRENT_SITE', '/blog/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    .htaccess code:

    RewriteEngine On
    RewriteBase /blog/
    RewriteRule ^index\.php$ - [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).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    Any help would be greatly appreciated.

    Thanks,
    Magesh

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

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I am getting 404/webpage has redirect loop.

    Where? On what page?

    Thread Starter mselvaraj

    (@mselvaraj)

    When I go to admin page /wp-admin. I see the redirect loop issue. And even the blog pages has the same issue. None of the pages worked.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Thread Starter mselvaraj

    (@mselvaraj)

    Hi,

    I tried all mentioned in the link but still having the same problem. In the above link, the person had the loop issue after login, but in my case I didn’t even get the login page.

    Thanks in advance.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    When I go to admin page /wp-admin. I see the redirect loop issue.

    You did not specify if you were or were not logging in, and since you didn’t give us your URL, we can’t magically know anything more than what you said 🙂

    So to clarify, when you visit yoursite.com/wp-admin it redirects you …. where? Check the URL closely! Is it adding or removing www from the domain name?

    Thread Starter mselvaraj

    (@mselvaraj)

    When I go to www-stg3.myblogsite.com/blog/wp-admin/, it redirects me to
    www-stg3.myblogsite.com/blog/ with the redirect loop error.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Can you share the real URL? Based on what you’re telling me, my GUESS is you’ve got it actually cycling through www-stg3.myblogsite.com/blog/wp-admin/ and stg3.myblogsite.com/blog/wp-admin/ over and over.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Multisite redirect loop issue’ is closed to new replies.