• Okay, here we go… I am the web developer for youth-sermons.com and am trying to get Multisite to work so we can offer tiered subscriptions (we use s2Member) where a user get’s his/her own subdomain (eg. matt.youth-sermons.com.) That’s not the problem. The problem is getting it to work.

    I have set up a test site at example.youth-sermons.com

    Here is what I have set up:

    WP-CONFIG:

    /* Multisite */
    define('WP_ALLOW_MULTISITE', true);
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    define('DOMAIN_CURRENT_SITE', 'youth-sermons.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    define("MULTISITE_FARM", true);

    HTACCESS:

    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]
    
    # BEGIN s2Member GZIP exclusions
    <IfModule mod_rewrite.c>
    	RewriteEngine On
    	RewriteBase /
    	RewriteCond %{QUERY_STRING} (^|\?|&)s2member_file_download\=.+ [OR]
    	RewriteCond %{QUERY_STRING} (^|\?|&)no-gzip\=1
    	RewriteRule .* - [E=no-gzip:1]
    </IfModule>
    # END s2Member GZIP exclusions
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) YOUTH_SERMONS/wp-includes/ms-files.php?file=$1 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) YOUTH_SERMONS/$1 [L]
    RewriteRule ^(.*\.php)$ YOUTH_SERMONS/$1 [L]
    RewriteRule . index.php [L]
    
    AddHandler x-httpd-php5 .html

    Also, I have installed and setup the cloudflare wpmu plugin.

    Any help is appreciated. Thanks!

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

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Remove this from your .htaccess first.

    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]
    Thread Starter Nicholas Loudermilk

    (@nicholasl)

    Done. Still no luck.

    New .htaccess:

    # BEGIN s2Member GZIP exclusions
    <IfModule mod_rewrite.c>
    	RewriteEngine On
    	RewriteBase /
    	RewriteCond %{QUERY_STRING} (^|\?|&)s2member_file_download\=.+ [OR]
    	RewriteCond %{QUERY_STRING} (^|\?|&)no-gzip\=1
    	RewriteRule .* - [E=no-gzip:1]
    </IfModule>
    # END s2Member GZIP exclusions
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) YOUTH_SERMONS/wp-includes/ms-files.php?file=$1 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) YOUTH_SERMONS/$1 [L]
    RewriteRule ^(.*\.php)$ YOUTH_SERMONS/$1 [L]
    RewriteRule . index.php [L]
    
    AddHandler x-httpd-php5 .html
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Is WP installed in a subfolder but running from root?

    Thread Starter Nicholas Loudermilk

    (@nicholasl)

    I am using Godaddy shared hosting with multiple domains on the same plan, so here is what it looks like:

    (root)\YOUTH_SERMONS (primary site)\WP-CONTENT\blogs.dir

    Here is a link to the DNS settings and GoDaddy’s Hosting Info:

    https://www.dropbox.com/sh/r27cdg2g6kqf1ui/OjH3nsc0EE

    Note: The centervilleafterschoolprogram.com domain you see is not accually valid, so if it is required to move Youth-Sermons to primary, it is certainly possible.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Multisite, Godaddy, and Cloudflare’ is closed to new replies.