Hi Our! ![]()
Hope you guys can help me with some redirects which iām not the best at.. ![]()
I have an Cloud project with two envirements, live and dev ![]()
https://anders-s-sensitive-beaver.s1.umbraco.io/
https://dev-anders-s-sensitive-beaver.s1.umbraco.io/
I want to redirect the live envirement to my actual domain, but keeping the dev envirement.
<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>
This one redirects everything.. So i tried reconfigure it to this,
<rule name="Redirects umbraco.io to actual domain" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="anders-s-sensitive-beaver.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>
But it still wont work like i want to, how is i supposed to do?
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/97209-umbraco-cloud-redirect