How to hide the default Umbraco Cloud URL

Do not complete this tutorial until you are ready to go-live with your new project.

This is also a particularly important process for the ongoing SEO of your website. This will ensure that Google, as well as your users, will not be able to access the Umbraco Cloud given domain once your website is live.

Step 1

You'll first need to pull the latest version of your site from Umbraco Cloud to your local development environment. After that, we can access the web.config and locate the <system.webServer><rewrite><rules> section. Open this file in your preferred editor.

<rule name="Redirects umbraco.io to actual domain" stopProcessing="true">
  <match url=".*" />
  <conditions>
    <add input="{HTTP_HOST}" pattern="^(.*)?.s1.umbraco.io$" />
    <add input="{REQUEST_URI}" negate="true" pattern="^/umbraco" />
    <add input="{REQUEST_URI}" negate="true" pattern="^/DependencyHandler.axd" />
    <add input="{REQUEST_URI}" negate="true" pattern="^/App_Plugins" />
    <add input="{REQUEST_URI}" negate="true" pattern="localhost" />
  </conditions>
  <action type="Redirect" url="http://<your actual domain here>.com/{R:0}" appendQueryString="true" redirectType="Permanent" />
</rule>

Step 2

Now that the code is in place you should push and commit your changes in the web.config file to the live environment on Umbraco Cloud.  

Get started today

Join thousands of agencies, freelancers, enterprises & start ups worldwide who use uSkinned Umbraco themes to deliver results.

NEW Themes Released

We have launched new themes and released major updates.