• 1. this is my enviroment:

    WordPress 3.5.2
    PHP 5.3.26
    MySQL 5.5.31
    Nginx 1.4.1

    2. problem:

    -2.1. I install wordpress mutisite with sub-folder, main site (abc.com) work fine, also can add new sub-blog (abc.com/subBlog), but sub-blog has no theme (single post and main), and could not link to admin dashboard (abc.com/subBlog/wp-admin), infinite redirect loop happened! (302)
    -2.2. go to add new post (abc.com/subBlog/wp-admin/post-new.php) will return 404 not found.

    3. already do:

    -3.1. add folder “blog.dir” on /wp-content/
    -3.2. change .htaccess to boilerplate (like this)

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

    but entire directory still not showing on location “blog.dir”,all problem still happen! any ideas?

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

    (@ipstenu)

    ?????? Advisor and Activist

    3. already do:

    -3.1. add folder “blog.dir” on /wp-content/

    Don’t need to do that with a new install, as of 3.5

    So if that’s the only problem, it’s not a problem ??

    Thread Starter chrisflicker

    (@chrisflicker)

    alright!
    but the problem happend before I add “blog.dir” folder.

    how can I fix it?

    I see that you’ve replaced your htaccess to the default boilerplate. Can you tell us what you find in your network settings when you append:

    /wp-admin/network/setup.php

    to your domain’s URL? I ask because each server may have idiosyncratic things which will trigger different rules for your htaccess.

    Other things to check would be to make sure you have the proper domain set as home in your wp-config and also clearing cookies. I have had the same issue a few times and each time it was something different, but don’t worry, we’ll get this.

    Thread Starter chrisflicker

    (@chrisflicker)

    my /wp-admin/network/setup.php setting:

    <?php
    /**
    * Network Setup administration panel.
    *
    * @package WordPress
    * @subpackage Multisite
    * @since 3.1.0
    */

    /** Load WordPress Administration Bootstrap */
    require_once( ‘./admin.php’ );

    if ( ! is_multisite() )
    wp_die( __( ‘Multisite support is not enabled.’ ) );

    require( ‘../network.php’ );

    wp-config:

    define(‘DB_HOST’, ‘localhost’);

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I install wordpress mutisite with sub-folder, main site (abc.com) work fine, also can add new sub-blog (abc.com/subBlog), but sub-blog has no theme (single post and main), and could not link to admin dashboard (abc.com/subBlog/wp-admin), infinite redirect loop happened! (302)

    Does your httpd.conf have allowoverride set to all?

    Thread Starter chrisflicker

    (@chrisflicker)

    @ipstenu I’m only use nginx, no apache. so I dont have httpd.cofig to setup.
    but Im sure that nginx bot (user) has my wordpress folder all permission.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Well if this was apache, I’d tell you that the problem is your .htaccess isn’t being read.

    But… Why are you using .htaccess on nginx? You should be using your nginx conf file.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘subfolder multisite – infinite redirect loop sub-blog admin login’ is closed to new replies.