Enable multisite · Wordpress · Wordpress setup

Enable multisite in wordpress

In this post I will show you how to enable multisite in wordpress.

**IMPORTANT**: Installing a multisite in WordPress will break your permalinks. WordPress will add “/blog” to all your URLS, and you will need to do a redirect if you dont want to loose your previous structure. Example:

Before multisite: name.synology.me/wpTutorial/sample-page

After multisite: name.synology.me/wpTutorial/blog/sample-page

Without the redirect, visitors that have saved your site as favourite will get a “Page not found”. You will need also to send your new URL’s to google, bing, etc for indexing…which is a real PAIN.

Internal links, that is, links to other pages on your site will not be affected.

Set up Multisite

Access the file wp-config.php from your file station:

locate

 

And the following lines below the /* That's all, stop editing! Happy blogging. */. If it doesn’t say that anywhere, then add the line somewhere above the first line that begins with require or include:

/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );

0

 

Log in wordpress and click on “Tools” and “Network setup”:

2.1

 

and you will see the following warning message:

2warning

Deactivate your plugins and proceed to create the network of sites:

  • give your network a name
  • enter an email address and click on “Install”:

3

In this step, wordpress will warn you about the changes on the permalink structure:

4

WordPress will now give you the code you need to add to wp-config.php and .htaccess:

5

Accesss those files with your File Station:

5.0

 

Copy the code to the wp-config.php below the /* That’s all, stop editing! Happy blogging. */:

5.1

and the replace all the code in the .htaccess with the code given by wordpress (I used notepad++ to do that):

5.2

Go back to wordpress and you will notice that a new section has appeared: “Sites” and my existing site wpTutorial is there already.

6

You will also have access to your new “Network admin” where you can administrate all the sites and functionality in the network. For example, you can administrate which plugins are administrated at a site level or which ones are administrated at a network level:

network

Enjoy!

6 thoughts on “Enable multisite in wordpress

  1. Hey!

    Very nice post and good to see somebody made it work on Synology.

    After doing all the changes I cannot log in anymore (I get a redirect to the homepage but no admin options available). I followed the exact steps you did and also others with small variations from other blogs none of them work…

    I am interested if the above still works for you on WordPress 4.0.1 on DSM 5.1 (this is what I have)?

    Cheers,

    Vali

    Like

  2. Any update? Same on my end, would love to get this working.

    Otherwise a really well written tutorial.

    Ben🙂

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s