• Resolved pjmerrigan

    (@pjmerrigan)


    Hi guys

    I’ve had a search around but can’t seem to find anything relevant to this:

    I have set up WordPress Multisites and now have two WP sites:

    http://www.peterjmerrigan.co.uk/
    and
    http://www.peterjmerrigan.co.uk/spd/

    The root site works as it should, but all I’m getting is a “coming soon” page on the /spd/ site (it’s the standard Apache(?) welcome.php file).

    I can get into the admin section of /spd/ site, create posts and pages, preview them, all fine. But for some reason they just won’t show up on site. Any ideas why?

    If it helps, here’s my .htaccess file contents:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    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]
    </IfModule>
    
    # END WordPress

    And the code I’ve added to wp-config.php:

    /* Multisite */
    define( 'WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'www.peterjmerrigan.co.uk');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    Any help and I’ll buy you a beer 🙂

Viewing 15 replies - 1 through 15 (of 16 total)
  • dcleek

    (@dcleek)

    Did you figure this out? I see content on the second site, not the welcome page.

    Thread Starter pjmerrigan

    (@pjmerrigan)

    Thanks for the reply. No, not figured it out yet. I’m in the middle of modifying the welcome.php file to make it look nicer until I can figure it out (assuming you’re seeing a white page, black text saying “Simon P. Doyle. Fantasy author. Visitors should check back soon.”) I’m about to add a background etc, but I still can’t figure out how to show any WordPress content.

    Additionally, I’ve checked with my host (GoDaddy) and mod_rewrite is on and working. Looks like an .htaccess issue, but I don’t know enough to fix it.

    dcleek

    (@dcleek)

    Ah, ok, I see. Is there a directory in your root named “spd” with the welcome.php file inside?

    Thread Starter pjmerrigan

    (@pjmerrigan)

    Yes, that’s right, that’s the file I’ve just modified to make it “pretty”. I should have left it alone until getting everything sorted, sorry!

    dcleek

    (@dcleek)

    Try removing that directory completely. You can change the name of it if you want to save the files inside. Multisite creates virtual sites, so if you have a directory in your root with the same name as the Site name you will have a conflict.

    Thread Starter pjmerrigan

    (@pjmerrigan)

    Thanks. Now I’m just getting a 404
    (http://www.peterjmerrigan.co.uk/spd/ to save you scrolling back up 🙂 )

    Edit: I didn’t actually create the /spd/ folder and welcome.php file… I figured WordPress did that when I set up the subfolder-site… :/

    dcleek

    (@dcleek)

    Are you using the latest version of WordPress? If so, make a backup of your current .htaccess file and try the one below.

    RewriteEngine On
    RewriteBase /
    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]
    Thread Starter pjmerrigan

    (@pjmerrigan)

    Thanks for your continued help, dcleek. With your htaccess above, I’m now getting a 500 Internal Server Error…

    And yes, I’m using WP 3.8.2

    dcleek

    (@dcleek)

    Try clearing you browser cache. I see the site. Also, the links on your main site that had a 404 error are now working.

    Thread Starter pjmerrigan

    (@pjmerrigan)

    Hmm. I’ve reverted my backed-up .htaccess file as the one you suggested didn’t work… and now the site is appearing :). Thank you for your help!

    However, I have a new problem. I’m pointing another domain name to the folder (2 domains, 1 hosting package).

    The folder works as expected now:
    http://www.peterjmerrigan.co.uk/spd/
    But the linked domain is still showing the Internal Server Error:
    http://www.simonpdoyle.com

    Is there some additional code I need in the .htaccess file, do you think?

    We’re nearly “resolved” 😀

    dcleek

    (@dcleek)

    Are you using a domain mapping plugin?

    http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

    Also, in GoDaddy, your domain needs to point to the root directory, not a subfolder.

    Thread Starter pjmerrigan

    (@pjmerrigan)

    I wasn’t using a domain mapping plugin, but I’ll check that out now, thanks.

    So you’re saying in GoDaddy, I need to point simonpdoyle.com to root, not to peterjmerrigan.co.uk/spd/ ?

    I’ll report back in a few minutes once I’ve installed the plugin.

    dcleek

    (@dcleek)

    Correct! You’ll also need to add the site to the Settings – Domains area once the plugin is installed.

    Thread Starter pjmerrigan

    (@pjmerrigan)

    Installed the plugin but it seems a bit over my head lol (the whole CNAME thing). I’m going to break for 10 minutes and then get stuck in. Thanks for all your help so far, dcleek! Much appreciated!

    Thread Starter pjmerrigan

    (@pjmerrigan)

    Wooo! I’ve sorted it! You, my good man, are a genius! Thank you dcleek!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Multisite subfolder site front-end not appearing’ is closed to new replies.