JN
08/08/2024, 7:25 PM<rewrite>
<rules>
<rule name="Redirect umbraco.io to primary hostname" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="\.umbraco\.io$" />
<add input="{HTTP_HOST}" pattern="^(dev-|stage-)(.*)?\.umbraco\.io$" ignoreCase="true" negate="true" />
<add input="{REQUEST_URI}" pattern="^/umbraco" ignoreCase="true" negate="true" />
<add input="{REQUEST_URI}" pattern="^/App_Plugins" ignoreCase="true" negate="true" />
<add input="{REQUEST_URI}" pattern="^/sb" negate="true" />
<!-- Don't redirect Smidge Bundle -->
<add input="{HTTP_COOKIE}" pattern="^(.+; )?UMB_UCONTEXT=([^;]*)(;.+)?$" negate="true" />
<!-- Ensure preview can render -->
<add input="{HTTP_HOST}" pattern="^localhost(:[0-9]+)?$" negate="true" />
</conditions>
<action type="Redirect" url="https://www.example.com/{R:0}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
rasmusjp
08/08/2024, 7:34 PMsrc/UmbracoProject
JN
08/08/2024, 7:42 PMJN
08/08/2024, 7:47 PMJN
08/08/2024, 7:47 PMrasmusjp
08/08/2024, 7:49 PMweb.config
. You can always check kudu to see if web.config
in the deployed folder (wwwroot, not to be confused with the projects wwwroot folder) has the correct rules https://docs.umbraco.com/umbraco-cloud/set-up/power-toolsJN
08/08/2024, 7:52 PMJN
08/08/2024, 7:57 PMrasmusjp
08/08/2024, 7:58 PMweb.config
should be in the folder referenced in the .umbraco
file which defaults to src/UmbracoProject
, so if you haven’t changed that it should work placing it in src/UmbracoProject
, if it doesn’t contact support and they’ll help you (or I can test it out tomorrow and come back to you)rasmusjp
08/08/2024, 8:00 PMbin
folder and added all files to the root and public files to wwwroot
, azure already used wwwroot
as the root folder for the web project, and the nested one is by default for public files e.g. files that can be downloaded through the browserJN
08/08/2024, 8:02 PMJN
08/08/2024, 8:03 PMJN
08/08/2024, 8:05 PMJN
08/08/2024, 8:07 PMrasmusjp
08/08/2024, 8:07 PMwwwroot/web.config
(not the nested folder), if the rules aren’t there, then something’s wrong with the deployment/location of web.config
, if they’re there then it’s the rules.JN
08/08/2024, 8:08 PMJN
08/08/2024, 8:08 PMJN
08/08/2024, 8:09 PMrasmusjp
08/08/2024, 8:16 PMJN
08/08/2024, 8:21 PMJN
08/09/2024, 2:27 PM