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

    (@ipstenu)

    ?????? Advisor and Activist

    https://sg.applebun.com works for me…

    Thread Starter krizzel

    (@krizzel)

    Doesnt work for me, it always redirect to “https://sg.applebun.com/cgi-sys/defaultwebpage.cgi”

    I have no idea why, again, the single post pages, dashboard etc on sg.applebun.com work, just the index.php immediately goes to above address.

    – DNS Wildcard is set and pointing at public html folder which is the root install of wordpress
    – htaccess file is changed accordingly
    – wp-config file is changed accordingly
    – blog.dir is created in wp-content
    – I’ve flushed my DNS Memory multiple times

    Even if i call https://sg.applebun.com/index.php directly -> goes to https://sg.applebun.com -> goes to above error

    This is my htaccess content:

    #Made Multi-Site with Multi-Site Enabler 1.5#
    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]
    
    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access 1 year"
    ExpiresByType image/jpeg "access 1 year"
    ExpiresByType image/gif "access 1 year"
    ExpiresByType image/png "access 1 year"
    ExpiresByType text/css "access 1 month"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType text/x-javascript "access 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 2 days"
    </IfModule>
    ## EXPIRES CACHING ##

    This is my wp-config content:

    define(‘WP_ALLOW_MULTISITE’, true);
    define ('MULTISITE', '1');
    define ('SUBDOMAIN_INSTALL', '1');
    define ('DOMAIN_CURRENT_SITE', 'applebun.com');
    define ('PATH_CURRENT_SITE', '/');
    define ('SITE_ID_CURRENT_SITE', 1);
    define ('BLOG_ID_CURRENT_SITE', 1);
    $base = '/';

    Thread Starter krizzel

    (@krizzel)

    Actually i was missing a part from my htaccess file, here is the complete content:

    #Made Multi-Site with Multi-Site Enabler 1.5#
    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]
    
    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access 1 year"
    ExpiresByType image/jpeg "access 1 year"
    ExpiresByType image/gif "access 1 year"
    ExpiresByType image/png "access 1 year"
    ExpiresByType text/css "access 1 month"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType text/x-javascript "access 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 2 days"
    </IfModule>
    ## EXPIRES CACHING ##
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    Thread Starter krizzel

    (@krizzel)

    ive put all details in a new thread as i changed my code a bit and this is getting too unstructured. This can be closed.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    As it happens? We’d actually rather you keep it all here ?? Sometimes seeing the thought process helps.

    The other post (closed)

    I have a strange problem with my multisite setup:
    https://applebun.com – My original page works 100%
    https://sg.multisite.com – My new multisite does not open the index.php but shows the standard Apache error instead. However, all subpages (like posts, admin dashboard etc) are working perfectly fine.

    I have done pretty much everything as required for multisites to work:
    – DNS Wildcard is configured, working (*.applebun.com) and pointin at the public html folder where wordpress is installed
    – wp-config, htaccess are configured as required
    – Blog Directory has been created in wp-content

    Again, I can access https://sg.applebun.com/wp-admin and every single page on that site as well, for example https://sg.applebun.com/2012/05/09/test/

    Even if i call https://sg.applebun.com/index.php directly -> goes to https://sg.applebun.com -> goes to https://sg.applebun.com/cgi-sys/defaultwebpage.cgi

    Okay. So when you set up subdomains, did you do them manually or via wildcard subdomains?

    Is there a folder called SG out there on your server?

    Have you looked in your cgi-bin folder for defaultwebpage.cgi?

    I really don’t understand why a WordPress installation, single or multi-user, would call any cgi script. There may be a plugin that does that but I am not familiar with it.

    I had a recent issue with the WordPress firewall doing it’s job and blocking my IP, easily fixed but annoying briefly.

    Remember, computers only do what they are told if and when they understand what they are told. The result they give is determined by what they are told, if you don’t get what you expect then it’s because you, or someone else, failed to give the instructions required to get that output.

    This looks more like a host filtering exercise to me.

    You may have to do some serious searching through all your .htaccess files in all your directories and sub directories to find this one but I suspect a good start would be to talk with your host.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    It’s not WP that does it, Mr Bearly, it’s usually setting up the subdomains the ‘default’ way and not kicking them over to WordPress.

    On a non-Wildcard subdomain site, if I go to foo.domain.com, it’ll give me the default apache welcome page.

    That’s what I thought.

    But even setting up a standard subdomain on Apache via Cpanel or Plesk won’t put a default web page in your cgi bin. The default Apache page is an html page isn’t it?

    Regardless the issue krizzel is having probably won’t be solved until he/she reinstalls the whole shebang.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    It’s a fake redirect that Apache does. You don’t have to reinstall WP when that happens, just fix the subdomain to point to the right place.

    (The apache page is somewhere in the default public_html setup, same as you’d see if you made a new domain on your server, but had not yet uploaded anything. It’s sort of an “If this exists but nothing is here…” mine defaults to a joke about Godzilla that my brother made, because I namely server Gamera. Every time I move a domain to a new IP, it shows that until everything syncs up again. Totally to do with Apache. My guess would be that the wildcard subdomains are pointing to the wrong place, in such a way as to pull up that default apache page. Fix that and WP will magically work.)

    ETA and since it STILL works for me, I think it’s fine and was just a case of DNS caching ??

    Hmmmm… I might have to spend a bit of time in the Apache files.

    No I won’t I have other things to do.

    I love magic…

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Multisite Single Post Pages work but Startpage Not’ is closed to new replies.