30

Worcamp2012 make a wordpress multisite in 20mins

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Worcamp2012 make a wordpress multisite in 20mins
Page 2: Worcamp2012 make a wordpress multisite in 20mins

Make a WordPress Multisite in

20 mins

Page 3: Worcamp2012 make a wordpress multisite in 20mins

About MeChandra Prakash ThapaProject Manager/ Developer E-Port International @cpthapa

Page 4: Worcamp2012 make a wordpress multisite in 20mins

What is WordPress Multisite?

The ability to create a network of websites from one

wordpress installation that shares themes,

plugins and users.

Page 5: Worcamp2012 make a wordpress multisite in 20mins

Why use Multisite?• Run unlimited website from one web account

and one database.

Page 6: Worcamp2012 make a wordpress multisite in 20mins

Why use Multisite?• To share themes, plugins and users across the

network.

Page 7: Worcamp2012 make a wordpress multisite in 20mins

Why use Multisite?• Manage

multiple websites from one dashboard.

Page 8: Worcamp2012 make a wordpress multisite in 20mins

Why use Multisite?• Save time upgrading multiple sites with one

action.

Page 9: Worcamp2012 make a wordpress multisite in 20mins

Who are using?

• WordPress.com

Page 10: Worcamp2012 make a wordpress multisite in 20mins

Who are using?

• Edublogs.com

• Wall Street Journal Blog

Page 11: Worcamp2012 make a wordpress multisite in 20mins

History

WordPress MultisiteWordPress Standard

Page 12: Worcamp2012 make a wordpress multisite in 20mins

WordPress 3.0• WordPress 3.0 = Standard + Multisite

Page 13: Worcamp2012 make a wordpress multisite in 20mins

Types of multisiteSubdomain Subdirectoryhttp:// site.yourdomain.com/ http:// yourdomain.com/site

Requires wildcard DNS. (*.yourdomain.com)

Requires no additional configuration.

Search engine rank as separate URL.

Search engine rank as part of main domain.

Page 14: Worcamp2012 make a wordpress multisite in 20mins

Setting up Multisite• In wp-config.php

• Refresh dashboard and click on network setup

Page 15: Worcamp2012 make a wordpress multisite in 20mins

Click Install to setup Network Title Admin e-mail address

Page 16: Worcamp2012 make a wordpress multisite in 20mins
Page 17: Worcamp2012 make a wordpress multisite in 20mins

Step1. Add following to your wp-config.php

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

Above /* that’s all stop editing..

Page 18: Worcamp2012 make a wordpress multisite in 20mins

Creating subdomain with ‘*’ will create wildcard domain. *.yourdomain.com

Page 19: Worcamp2012 make a wordpress multisite in 20mins

Step2.Replace your current .htaccess file

RewriteEngine OnRewriteBase /RewriteRule ^index\.php$ - [L]

# uploaded filesRewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

# add a trailing slash to /wp-adminRewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]RewriteCond %{REQUEST_FILENAME} -dRewriteRule ^ - [L]RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]RewriteRule . index.php [L]

Page 20: Worcamp2012 make a wordpress multisite in 20mins

Step 3.Create blogs.dir directory inside

wp-content folder.

Page 21: Worcamp2012 make a wordpress multisite in 20mins

LOG-in Back

That’s it! You’re Done

Page 22: Worcamp2012 make a wordpress multisite in 20mins

Your new network

Page 23: Worcamp2012 make a wordpress multisite in 20mins

Network Admin Panel

Page 24: Worcamp2012 make a wordpress multisite in 20mins

Network Users / Admins / Super Admins

Page 25: Worcamp2012 make a wordpress multisite in 20mins

Network Settings

Page 26: Worcamp2012 make a wordpress multisite in 20mins

Editing Network Site

Page 27: Worcamp2012 make a wordpress multisite in 20mins

SuperAdmin Controls Plugins

Page 28: Worcamp2012 make a wordpress multisite in 20mins

Plugins for WordPress MS

• WordPress MU domain mapping

This plugin allows users of a WordPress 3.0 network to map their blog/site to another domain or top level domain.http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

• WordPress MU Sitewide Tags PagesA central area where all the posts on a WordPress MU or WordPress MS site can be collected. http://wordpress.org/extend/plugins/wordpress-mu-sitewide-tags/

Page 30: Worcamp2012 make a wordpress multisite in 20mins

Questions?