The MU forums have moved to WordPress.org

Running WP 3.0 with Multi site enabled. Subdomain blog loading first post... (5 posts)

  1. huynhk
    Member
    Posted 13 years ago #

    Hi guys,

    Scratching my head on this one. I think it could be a htaccess issue so your thoughts and suggestions would be much appreciated.

    Upgraded to the latest beta release of WordPress 3.0 this morning and enabled multi site via subdomain.

    Everything works great, but when I go to the extra install http://subeta.pinkpt.com/ it loads http://subeta.pinkpt.com/subeta-guides/game-guides/save-the-otters-guide-by-shoyru_lover/ as the first page instead of http://subeta.pinkpt.com/.

    Here is my .htaccess file:

    # BEGIN W3 Total Cache
    <IfModule mod_setenvif.c>
        SetEnvIfNoCase Accept-Encoding (gzip) APPEND_EXT=.$1
    </IfModule>
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{REQUEST_URI} \/$
        RewriteCond %{REQUEST_URI} !(\/wp-admin\/|\/xmlrpc.php|\/wp-(app|cron|login|register).php|wp-.*\.php|index\.php|ajax\.php) [OR]
        RewriteCond %{REQUEST_URI} (wp\-comments\-popup\.php|wp\-links\-opml\.php|wp\-locations\.php) [NC]
        RewriteCond %{REQUEST_METHOD} !=POST
        RewriteCond %{QUERY_STRING} =""
        RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|wordpress_\[a\-f0\-9\]\+|wordpress_logged_in) [NC]
        RewriteCond %{HTTP_USER_AGENT} !(bot|ia_archive|slurp|crawl|spider) [NC]
        RewriteCond /home/pinkptc/public_html/wp-content/w3tc/pgcache/$1/_default_.html%{ENV:APPEND_EXT} -f
        RewriteRule (.*) wp-content/w3tc/pgcache/$1/_default_.html%{ENV:APPEND_EXT} [L]
    </IfModule>
    # END W3 Total Cache
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]

    Has anyone else experienced a similar issue? Did some googling and search these forums but no clear fixes over here.

  2. huynhk
    Member
    Posted 13 years ago #

    Update: I don't think this is a htaccess issue. I just created another blog http://clubpenguin.pinkpt.com/ and it doesn't have the same issue as http://subeta.pinkpt.com/

  3. andrea_r
    Moderator
    Posted 13 years ago #

    Hiya! :)

    Whew, glad you created a second blog. I was going to suggest dumping in the default htaccess for a bit to check that, but a second blogs kinda does the same test. Maybe. I'd still be tempted tho.

    On the wonky blog, are you sure there's no 'set this as the front page" setting enabled? (I know it's a post showing, not a page, right?)

    And for giggles, go resave the permalink settings on that blog.

  4. alenonimo
    Member
    Posted 13 years ago #

    Are you using Redirection plugin? Try disabling it.

  5. huynhk
    Member
    Posted 13 years ago #

    Thanks for the replies guys.

    This is my updated .htacess file for the main WordPress install.

    # BEGIN W3 Total Cache
    <IfModule mod_setenvif.c>
        SetEnvIfNoCase Accept-Encoding (gzip) APPEND_EXT=.$1
    </IfModule>
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{REQUEST_URI} \/$
        RewriteCond %{REQUEST_URI} !(\/wp-admin\/|\/xmlrpc.php|\/wp-(app|cron|login|register).php|wp-.*\.php|index\.php|ajax\.php) [OR]
        RewriteCond %{REQUEST_URI} (wp\-comments\-popup\.php|wp\-links\-opml\.php|wp\-locations\.php) [NC]
        RewriteCond %{REQUEST_METHOD} !=POST
        RewriteCond %{QUERY_STRING} =""
        RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|wordpress_\[a\-f0\-9\]\+|wordpress_logged_in) [NC]
        RewriteCond %{HTTP_USER_AGENT} !(bot|ia_archive|slurp|crawl|spider) [NC]
        RewriteCond /home/pinkptc/public_html/wp-content/w3tc/pgcache/$1/_default_.html%{ENV:APPEND_EXT} -f
        RewriteRule (.*) wp-content/w3tc/pgcache/$1/_default_.html%{ENV:APPEND_EXT} [L]
    </IfModule>
    # END W3 Total Cache
    
    # BEGIN Permalinks Redirection
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteRule ^index\.php$ - [L]
    </IfModule>
    # END Permalinks Redirection
    
    # BEGIN Uploaded Files
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^ - [L]
        RewriteRule . index.php [L]
    </IfModule>
    # END Uploaded Files
    
    # BEGIN 301 Redirect to Domain Without 'www.'
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteCond %{HTTP_HOST} ^www.pinkpt.com$ [NC]
        RewriteRule ^(.*)$ http://pinkpt.com/$1 [R=301,L]
    </IfModule>
    # END 301 Redirect to Domain Without 'www.'

    In terms of the second blog .htacess, as it runs off the main WP install using WordPress 3.0's multi-site function, I assume it would use the same .htaccess as the main WP install?

    On the wonky blog, there 'set this as the front pag' setting is not enabled.

    I resaved the permalink settings for the blog, still the same issues.

    Redirection plugin - deactivated and... IT WORKS!!

About this Topic