Written by Kevinul All umbraco versionsHow-to
This is a tutorial on how to set up subdomains with Umbraco installed in root to target documents or folders (another web site).
My name is Kevin Keeney, and I'm known as "Kevinul" on the
Internet due to it's my first nickname on the Internet while
registering for an online game. It's stuck with me so here I'm
still using it.
This "book" is meant to help you with Umbraco's sub-domain
feature for those who would like multiple web sites (multi-sites)
or for those who want a document to have a sub-domain.
Note to Reader: This is my first "book", and so
please bare with me. I would like your feedback, and any changes
with Umbraco about this feature, please also contact me about via
E-Mail at kevinul@live.com.
Setup with Control Panel
This "book" assumes you have a control panel of which I'll be
using Parallels' Plesk Control Panel supplied by my current web
hosting company. If you have a different control panel, for example
Helm, the process should be the same.
- Now, login into your control panel.
- Navigate yourself to "Subdomains" section, and
click on "Create Subdomain" on the page. Click on
the "Subdomain or subfolder" option and click the
Next >> button.
- Input your desired subdomain, and it's optional for you to
include the WWW setting. I would recommend you not
too due to some confusion of users later on.
- Click Finish.
You might receive an error that Plesk could not write into
web.config file about ASP.NET setting, and I found this
not to be concerned with.
Modify Umbraco Config File
In a default installation, you need to use any client you choose
to edit the files located on the server, and locate
umbracoSettings.config in
'<root>/config/' folder. Then, find (Most
clients I have come up with have a common keystroke, CTRL +
F, to use a find text dialog.) the following.
<UseDomainPrefixes>
Change "false" into "true" without quotations between the above
tag. You're now done with this part, and so you may now save it to
add it to the server.
Umbraco Control Panel
Login to your web site's control panel, and click
Content in the Section box. There
is where you may choose what page or folder to have your subdomain
attached to. Once you've made your choice, right-click with your
mouse over your choice anc click Manage hostnames
in the menu.
Everything should be straight-forward from there.