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:
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
/* Multisite */ define( 'WP_ALLOW_MULTISITE', true );
Log in wordpress and click on “Tools” and “Network setup”:
and you will see the following warning message:
Deactivate your plugins and proceed to create the network of sites:
- give your network a name
- enter an email address and click on “Install”:
In this step, wordpress will warn you about the changes on the permalink structure:
WordPress will now give you the code you need to add to wp-config.php and .htaccess:
Accesss those files with your File Station:
Copy the code to the wp-config.php below the /* That’s all, stop editing! Happy blogging. */:
and the replace all the code in the .htaccess with the code given by wordpress (I used notepad++ to do that):
Go back to wordpress and you will notice that a new section has appeared: “Sites” and my existing site wpTutorial is there already.
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: