Quantcast
Channel: Topic Tag: godaddy | WordPress.org
Viewing all articles
Browse latest Browse all 4337

Nicholas Loudermilk on "Multisite, Godaddy, and Cloudflare"

$
0
0

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 all articles
Browse latest Browse all 4337

Trending Articles