Multisite WordPress Hosting on Microsoft Azure Websites
I’m sure you know that you can easily host a WordPress blog on Microsoft Azure Websites. But did you know you can also host a multisite WordPress installation on Azure Websites? I will guide you through the necessary steps and show you one caveat you will encounter and which will hopefully fixed soon.
Prerequisites
To host a WordPress blog on Azure Websites you’ll need an Azure Subscription. You can sign-up for a trial subscription and basically if you’re blog has not that much of traffic you can even still keep it for free. Here is the link to the Azure Registration process
Azure Command-Line Interface
My personal preference for utilizing backend services is mostly the command line. Normally I would stick with the Azure CLI for this post. Unfortunately the scenario I’m covering here is not supported in this version of the CLI
That’s it with prerequisites, let’s begin
Create a Website hosting WordPress
To host WordPress we’ll grab Azure Websites. The benefit is that we don’t have to patch the host ourselves, we’re just patching WordPress if we need to. Our WordPress installation will run on Windows using MySQL hosted by ClearDB.
As there are plenty of super materials on this topic, please follow this guide
Create a WordPress website from the gallery in Azure
Activate Multisite Hosting
To activate multisite hosting we have to modify wp-config.php and add a new define statement. You can do this several ways:
- Using Web Matrix (just Windows)
- Download the site via FTP, edit it, upload it (not recommended)
- Use Visual Studio Online to edit the site (preview feature)
I’ll use Visual Studio Online. To activate it we need to enable it under the website configurations tab.

Basically you just follow the description Convert a WordPress Site to a Multisite.
Moment of Truth
And here comes the moment of truth. If you used subfolders to have multiple sites you’ll realize (as of February, 16th 2015) that your blogs running in subfolders look unstyled and you’re not able to access the dashboard for this sites. This is a bug in the scaffolded WordPress package on Azure. There is a tiny overseen typo in the URL rewriting in web.config.
<rule name="WordPress Rule 4" stopProcessing="true">
<match url="^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)" ignoreCase="false" />
<action type="Rewrite" url="{R:2}" />
</rule>
Under WordPress Rule 4 the action elements url parameter is using R:1 but it should be R:2 like in this snippet. Change it if you have this problem and you’re good to go.
Good Start
Hosting WordPress on Azure is pretty straightforward. The free tier has some limits but for testing things out it is a great thing and if you’re blog is not using too many plugins and have not the frequency of visitors like Hanselman’s the free tier could do it for you. And if you’re blog is getting more popular, you can easily scale up to your needs.