The MU forums have moved to WordPress.org

Mainpage doesn't work while new blogs do (12 posts)

  1. anothero
    Member
    Posted 18 years ago #

    I just completed the setup of WPMU, but now I've got the following problem. The mainpage does not work, but I can make a new blog though. This blog works perfectly, what went wrong? I'm really clueless.

    My homepage is: http://www.anotherone.nl
    My newblog is: http://www.anotherone.nl/test

    I installed WPMU earlier but at that time I wanted to use Vhost. The mainpage worked fine then. Unfortunally my host did not cooperate with enabling me to use wildcard subdomains.

  2. maxius
    Member
    Posted 18 years ago #

    Change the theme?

  3. anothero
    Member
    Posted 18 years ago #

    I can't get to the wp-admin page of the mainblog, so I can't even change the template.

    When I try to login on the mainblog I get the following error:

    Fatal Error
    Could Not Find Blog!
    Searched for anotherone.nl/ in anothero_gelderblog::wp_blogs table. Is that right?
    Please check that your database contains the following tables:
    wp_blogs
    wp_users
    wp_usermeta
    wp_site
    wp_sitemeta
    wp_sitecategories
    If you suspect a problem please report it to support forums!

  4. fugazzi
    Member
    Posted 18 years ago #

    Check your .htaccess mod_rewrite
    I see that my browser try to load the images from http://nl/anatherone/wp-content/themes/

  5. epdady007
    Member
    Posted 18 years ago #

    My hompage and admin have simialar problem,
    except my host set up wildcard for me , so they say?
    http://www.fearlessbloger.com

  6. anothero
    Member
    Posted 18 years ago #

    What should my .htaccess mod_rewrite look like?

    Now it looks like this:

    #php_flag register_globals 0
    #php_flag display_errors 0
    RewriteEngine On
    RewriteBase BASE/

    # Rewrite http://www.domain.com to domain.com
    RewriteCond %{HTTP_HOST} ^www.(.*)
    RewriteRule ^(.*) http://%1/$1 [R,L]

    ###
    #### blogs
    ###
    RewriteRule ^([_0-9a-zA-Z-]+)/templates/(.*) BASE/wp-content/blogs/$1/templates/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/files/(.*) BASE/wp-inst/wp-content/blogs.php?file=$1 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-inst/wp-content/blogs/(.*)/files/(.*) BASE/wp-content/blogs.php?file=$3 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-content/themes/(.*) BASE/wp-content/themes/$2 [L]
    RewriteRule ^/wp-content/themes/(.*) BASE/wp-content/themes/$1 [L]

    # rewrite these
    RewriteRule ^([_0-9a-zA-Z-]+)/category/(.*)/page/(.*)/ BASE/wp-inst/index.php?wpblog=$1&category_name=$2&paged=$3 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ BASE/wp-inst/wp-feed.php?wpblog=$1&category_name=$2&feed=$3 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/category/?(.*) BASE/wp-inst/index.php?wpblog=$1&category_name=$2 [L]

    RewriteRule ^([_0-9a-zA-Z-]+)/tag/(.*)/page/(.*)/ BASE/wp-inst/index.php?wpblog=$1&category_name=$2&paged=$3 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/tag/(.*)/(feed|rdf|rss|rss2|atom)/?$ BASE/wp-inst/wp-feed.php?wpblog=$1&category_name=$2&feed=$3 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/tag/?(.*) BASE/wp-inst/index.php?wpblog=$1&category_name=$2 [L]

    RewriteRule ^([_0-9a-zA-Z-]+)/author/(.*)/(feed|rdf|rss|rss2|atom)/?$ BASE/wp-inst/wp-feed.php?wpblog=$1&author_name=$2&feed=$3 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/author/?(.*) BASE/wp-inst/index.php?wpblog=$1&author_name=$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/([0-9]{4})/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-zA-Z-]+)?/?([0-9]+)?/?$ BASE/wp-inst/index.php?wpblog=$1&year=$2&monthnum=$3&day=$4&name=$5&page=$6 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/([0-9]{4})/?([0-9]{1,2})/([0-9]{1,2})/([_0-9a-zA-Z-]+)/(feed|rdf|rss|rss2|atom)/?$ BASE/wp-inst/wp-feed.php?wpblog=$1&year=$2&monthnum=$3&day=$4&name=$5&feed=$6 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/([0-9]{4})/?([0-9]{1,2})/([0-9]{1,2})/([_0-9a-zA-Z-]+)/trackback/?$ BASE/wp-inst/wp-trackback.php?wpblog=$1&year=$2&monthnum=$3&day=$4&name=$5 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/page/?([0-9]+)?/?$ BASE/wp-inst/index.php?paged=$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/feed/?([_0-9a-zA-Z-]+)?/?$ BASE/wp-inst/wp-feed.php?wpblog=$1&feed=$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/comments/feed/?([_0-9a-zA-Z-]+)?/?$ BASE/wp-inst/wp-feed.php?wpblog=$1&feed=$2&withcomments=1 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/archives/p/([0-9]+)/?(.*)? BASE/wp-inst/index.php?wpblog=$1&redirect=yes&p=$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/archives/cat/([0-9]+)/?(.*)? BASE/wp-inst/index.php?wpblog=$1&redirect=yes&cat=$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/archives/m/([0-9]+)#?(.*)? BASE/wp-inst/index.php?wpblog=$1&redirect=yes&m=$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/b2rss2.php(.*)? BASE/wp-inst/wp-feed.php?wpblog=$1&feed=rss2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/b2rdf.php(.*)? BASE/wp-inst/wp-feed.php?wpblog=$1&feed=rdf [L]

    # We want to pass these files straight through
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-comments-post.php(.*) BASE/wp-inst/wp-comments-post.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/go.php(.*) BASE/wp-inst/go.php$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/pages/(.*) BASE/wp-inst/pages/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-admin/(.*) BASE/wp-inst/wp-admin/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-atom.php(.*) BASE/wp-inst/wp-atom.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-comments-popup.php(.*) BASE/wp-inst/wp-comments-popup.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-comments-post.php(.*) BASE/wp-inst/wp-comments-post.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-commentsrss2.php(.*) BASE/wp-inst/wp-commentsrss2.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-counter.php(.+)? BASE/wp-inst/wp-counter.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-feed.php(.*) BASE/wp-inst/wp-feed.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-images/(.*) BASE/wp-inst/wp-images/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-links-opml.php(.*) BASE/wp-inst/wp-links-opml.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-login.php(.*) BASE/wp-inst/wp-login.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-mail.php(.*) BASE/wp-inst/wp-mail.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-pass.php(.*) BASE/wp-inst/wp-pass.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-rdf.php(.*) BASE/wp-inst/wp-rdf.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-register.php(.*) BASE/wp-inst/wp-register.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-rss.php(.*) BASE/wp-inst/wp-rss.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-rss2.php(.*) BASE/wp-inst/wp-rss2.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-sidebar.php(.*) BASE/wp-inst/wp-sidebar.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-trackback.php(.*) BASE/wp-inst/wp-trackback.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/xmlrpc.php(.*) BASE/wp-inst/xmlrpc.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/maintenance.php BASE/wp-inst/maintenance.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/favicon.ico BASE/wp-inst/favicon.ico [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-includes/images/(.*) BASE/wp-inst/wp-includes/images/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+)/wp-includes/js/(.*) BASE/wp-inst/wp-includes/js/$2 [L]

    RewriteRule ^wp-newblog.php$ BASE/wp-inst/wp-newblog.php [L]
    RewriteRule ^wp-login.php BASE/wp-inst/wp-login.php [L]
    RewriteRule ^wp-admin/(.*) BASE/wp-inst/wp-admin/$1 [L]
    RewriteRule ^wp-includes/images/(.*) BASE/wp-inst/wp-includes/images/$1 [L]
    RewriteRule ^wp-includes/js/(.*) BASE/wp-inst/wp-includes/js/$1 [L]
    RewriteRule ^signup/ BASE/wp-inst/wp-newblog.php [L]
    RewriteRule ^invite/(.*)/? BASE/wp-inst/wp-newblog.php?u=$1 [L]
    RewriteRule ^index.php BASE/wp-inst/index.php [L]

    RewriteRule ^$ BASE/wp-inst/index.php [L]

    # catch all rules
    RewriteRule ^([_0-9a-zA-Z-]+)/ BASE/wp-inst/index.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+) $1/ [R,L]

    AddType text/css .css

  7. anothero
    Member
    Posted 18 years ago #

    I still have the same problem as I had in the first post I made. I installed it again with the vhost turned on and the mainpage worked again. But my host still won't cooperate with enabling me to use wildcard subdomains.

    Can someone please look at my .htaccess file? Because I think my problem is in that file.

  8. anothero
    Member
    Posted 18 years ago #

    Still got the same problem. Will somebody please help me with the .htaccess file?
    My knowledge of mod_rewrite just isn't that good...

  9. andrea_r
    Moderator
    Posted 18 years ago #

    The non-vhost option is buggy. Did you get the message on the main blog (with vhosts off) that it could possibly conflict with other user's permalinks? I can't remember exactly what it says right now.

    And I'm not sure if anyone on the forum has got it working with vhosts off. If so, please speak up. :)

  10. anothero
    Member
    Posted 18 years ago #

    I do not get any messages on the mainblog. The blog just won't show the theme and can't login to the admin site. At first I couldn't get to the login screen, but somehow I fixed that problem (don't have a clue how :S) The wp-login doesn't get to the theme as well.

  11. debrouille
    Member
    Posted 18 years ago #


  12. debrouille
    Member
    Posted 18 years ago #

    i have 2 non-vhost installations working...

About this Topic

  • Started 18 years ago by anothero
  • Latest reply from debrouille