Quick Tip: Hide the default Umbraco Cloud URL once your site is ready to launch

I've recently launched my new website using a uSkinned theme and Umbraco Cloud... now that it's live, how do I stop users from being able to access my default umbraco.io URL?

uSkinned Member

To achieve we use a similar approach to how we assign multiple hostnames to one production domain.

Like setting up multiple hostnames 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 file. 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.  

comments powered by Disqus

Get started today

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

NEW Umbraco V8 themes!

We are now releasing our much anticipated Umbraco V8 themes.