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 to actual domain" stopProcessing="true">
  <match url=".*" />
    <add input="{HTTP_HOST}" pattern="^(.*)?$" />
    <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" />
  <action type="Redirect" url="http://<your actual domain here>.com/{R:0}" appendQueryString="true" redirectType="Permanent" />

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 Site Builder for Umbraco to deliver results.

NEW Site Builder!

We have launched a brand new, game-changing product for Umbraco CMS.