Wordpress MultiSite: Your assistance please, ladies & gentlemen...

Merlin

Expert Member
Joined
Jan 18, 2006
Messages
2,802
Reaction score
325
Location
Cape Town, South Africa
Hi,

I had an existing Wordpress blog, located in /blog.

I've now converted it to a Wordpress MultiSite installation, successfully. I have the network interface and have created a second site.

I have also enabled DNS wildcard entries for my subdomains.

I am unable to access the second site or it's admin console though.

My first attempt as resolving this was to add a CNAME, but even after 24 hours, the URL does not resolve.

Problem #1

How do I get my MultiSite sites up and running?

Problem #2

How do I convert site.blog.example.com into site.example.com?

For reference, here is the .htaccess file in /blog:

Code:
# BEGIN WordPress
Options +SymLinksIfOwnerMatch
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]
# END WordPress

...and the .htaccess file in the root (the relevant bits):

Code:
<IfModule mod_rewrite.c>
# For security reasons, Option followsymlinks cannot be overridden.
#Options +FollowSymLinks
Options +SymLinksIfOwnerMatch
Options -Indexes
RewriteEngine On
RewriteBase /

# No 'www'
#RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
#RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

# Fix missing trailing slash character on folders
#RewriteRule ^([^.?]+[^.?/])$ $1/ [R,L]

### Domain handling
RewriteCond %{HTTP_HOST} website1\.za\.org
RewriteRule (.*) http://www.website1.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} !\b(website2|website3)\.(za.net|za.org|co.za|com|net)$
RewriteCond %{REQUEST_URI} !^/(folder|phpinfo\.php|google\.html|pinterest\.html)
RewriteRule (.*)$ http://blog.example.com/$1 [R=301,L]

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]

# Sitemap redirection
# Redirect 301 /sitemap.xml http://blog.example.com/sitemap.xml
# Redirect 301 /sitemap.xml.gz http://blog.example.com/sitemap.xml.gz

# Redirect if subfolder index is requested
RewriteRule ^folder/?$ http://blog.example.com/ [R=301,L]
# Redirect if non-existent file in subfolder is requested
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^folder/(.+)$ http://blog.example.com/$1 [R=301,L] 
</IfModule>

# Default
DirectoryIndex index.php # error.php

Any assistance would be greatly appreciated.
 
Top
Sign up to the MyBroadband newsletter
X