From 47f717fca2689e435328a44c6a027c3a8bc4dd16 Mon Sep 17 00:00:00 2001 From: Esha Noronha Date: Fri, 29 Nov 2024 09:00:02 +0100 Subject: [PATCH 01/10] Added another example covering the feedback --- .../reference/routing/iisrewriterules.md | 70 +++++++++++++++++-- 1 file changed, 63 insertions(+), 7 deletions(-) diff --git a/15/umbraco-cms/reference/routing/iisrewriterules.md b/15/umbraco-cms/reference/routing/iisrewriterules.md index a05293b530d..e6b31a72fc5 100644 --- a/15/umbraco-cms/reference/routing/iisrewriterules.md +++ b/15/umbraco-cms/reference/routing/iisrewriterules.md @@ -83,11 +83,20 @@ For more details and other examples, take a look at the [URL Rewriting Middlewar ## Examples of rewrite rules -* A great site showing 10 very handy IIS Rewrite rules: [URL rewriting tips and tricks](https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/) -* Another site showing some handy examples of IIS Rewrite rules: [Some useful IIS rewrite rules](https://odetocode.com/blogs/scott/archive/2014/03/27/some-useful-iis-rewrite-rules.aspx) -* If you needed to a lot of static rewrites using rewrite maps: [Rule with rewrite map rule template](https://www.iis.net/learn/extensions/url-rewrite-module/rule-with-rewrite-map-rule-template) +Below are some handy IIS Rewrite Rules you can use in your projects: -For example, to always remove a trailing slash from the URL (make sure Umbraco doesn't add a trailing slash to all generated URLs by setting `AddTrailingSlash` to `false` in your [RequestHandler settings](../configuration/requesthandlersettings.md)): +* **10 Handy IIS Rewrite Rules** +A great resource showcasing 10 practical IIS Rewrite rules: [URL rewriting tips and tricks](https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/) + +* **Examples of IIS Rewrite Rules** +Another useful collection of IIS rewrite rule examples: [Some useful IIS rewrite rules](https://odetocode.com/blogs/scott/archive/2014/03/27/some-useful-iis-rewrite-rules.aspx) + +* **Static Rewrites Using Rewrite Maps** +If you need to handle a lot of static rewrites, consider using rewrite maps: [Rule with rewrite map rule template](https://www.iis.net/learn/extensions/url-rewrite-module/rule-with-rewrite-map-rule-template) + +### Example: Remove a Trailing Slash + +To remove a trailing slash from the URL (ensure Umbraco does not add a trailing slash by setting `AddTrailingSlash` to `false` in your [RequestHandler settings](../configuration/requesthandlersettings.md)): ```xml @@ -101,7 +110,9 @@ For example, to always remove a trailing slash from the URL (make sure Umbraco d ``` -Another example would be to enforce HTTPS only on your site: +### Example: Enforce HTTPS + +To ensure your site only runs on HTTPS: ```xml @@ -114,7 +125,9 @@ Another example would be to enforce HTTPS only on your site: ``` -Another example would be to redirect from non-www to www (except for the Umbraco Cloud project hostname): +### Example: Redirect Non-www to www + +To redirect traffic from non-www to www (excluding the Umbraco Cloud project hostname): ```xml @@ -128,6 +141,49 @@ Another example would be to redirect from non-www to www (except for the Umbraco ``` +### Example: Remove the .aspx Extension + +If you want to redirect .aspx URLs to their extensionless counterparts, you can use the following rule. Make sure you also have a web.config file in the root of your site: + +```xml + + + + + + + + + + + + + + + + + +``` + +### Example: Custom Rewrite Rules for Umbraco Cloud + +An example configuration to help ensure your custom rules integrate properly: + +```xml + + + + + + + + + + + + +``` + {% hint style="warning" %} -If you use **Umbraco Cloud** check the [Rewrite Rules](https://docs.umbraco.com/umbraco-cloud/set-up/project-settings/manage-hostnames/rewrites-on-cloud) article. +If you use **Umbraco Cloud**, check the [Rewrite Rules](https://docs.umbraco.com/umbraco-cloud/set-up/project-settings/manage-hostnames/rewrites-on-cloud) article. {% endhint %} From b7335623b3567efddc35b8129e4880f00c0b582f Mon Sep 17 00:00:00 2001 From: Esha Noronha Date: Fri, 29 Nov 2024 09:03:25 +0100 Subject: [PATCH 02/10] Fixed formatting --- 15/umbraco-cms/reference/routing/iisrewriterules.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/15/umbraco-cms/reference/routing/iisrewriterules.md b/15/umbraco-cms/reference/routing/iisrewriterules.md index e6b31a72fc5..7d6dd2e2226 100644 --- a/15/umbraco-cms/reference/routing/iisrewriterules.md +++ b/15/umbraco-cms/reference/routing/iisrewriterules.md @@ -86,12 +86,15 @@ For more details and other examples, take a look at the [URL Rewriting Middlewar Below are some handy IIS Rewrite Rules you can use in your projects: * **10 Handy IIS Rewrite Rules** + A great resource showcasing 10 practical IIS Rewrite rules: [URL rewriting tips and tricks](https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/) * **Examples of IIS Rewrite Rules** + Another useful collection of IIS rewrite rule examples: [Some useful IIS rewrite rules](https://odetocode.com/blogs/scott/archive/2014/03/27/some-useful-iis-rewrite-rules.aspx) * **Static Rewrites Using Rewrite Maps** + If you need to handle a lot of static rewrites, consider using rewrite maps: [Rule with rewrite map rule template](https://www.iis.net/learn/extensions/url-rewrite-module/rule-with-rewrite-map-rule-template) ### Example: Remove a Trailing Slash @@ -184,6 +187,6 @@ An example configuration to help ensure your custom rules integrate properly: ``` -{% hint style="warning" %} +{% hint style="info" %} If you use **Umbraco Cloud**, check the [Rewrite Rules](https://docs.umbraco.com/umbraco-cloud/set-up/project-settings/manage-hostnames/rewrites-on-cloud) article. {% endhint %} From 9202066f45df171f5ee6551f5d3787cba15dcba4 Mon Sep 17 00:00:00 2001 From: Esha Noronha <82437098+eshanrnh@users.noreply.github.com> Date: Mon, 2 Dec 2024 09:43:32 +0100 Subject: [PATCH 03/10] Update 15/umbraco-cms/reference/routing/iisrewriterules.md Co-authored-by: sofietoft --- 15/umbraco-cms/reference/routing/iisrewriterules.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/15/umbraco-cms/reference/routing/iisrewriterules.md b/15/umbraco-cms/reference/routing/iisrewriterules.md index 7d6dd2e2226..515ce903aaa 100644 --- a/15/umbraco-cms/reference/routing/iisrewriterules.md +++ b/15/umbraco-cms/reference/routing/iisrewriterules.md @@ -99,7 +99,9 @@ If you need to handle a lot of static rewrites, consider using rewrite maps: [Ru ### Example: Remove a Trailing Slash -To remove a trailing slash from the URL (ensure Umbraco does not add a trailing slash by setting `AddTrailingSlash` to `false` in your [RequestHandler settings](../configuration/requesthandlersettings.md)): +The following rule removes any trailing slashes from the URL. + +Ensure Umbraco does not add a trailing slash by setting `AddTrailingSlash` to `false` in your [RequestHandler settings](../configuration/requesthandlersettings.md). ```xml From 6849692f22377be99315b98c18356ae51d306428 Mon Sep 17 00:00:00 2001 From: Esha Noronha <82437098+eshanrnh@users.noreply.github.com> Date: Mon, 2 Dec 2024 09:43:41 +0100 Subject: [PATCH 04/10] Update 15/umbraco-cms/reference/routing/iisrewriterules.md Co-authored-by: sofietoft --- 15/umbraco-cms/reference/routing/iisrewriterules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/15/umbraco-cms/reference/routing/iisrewriterules.md b/15/umbraco-cms/reference/routing/iisrewriterules.md index 515ce903aaa..9eedaa86b4c 100644 --- a/15/umbraco-cms/reference/routing/iisrewriterules.md +++ b/15/umbraco-cms/reference/routing/iisrewriterules.md @@ -117,7 +117,7 @@ Ensure Umbraco does not add a trailing slash by setting `AddTrailingSlash` to `f ### Example: Enforce HTTPS -To ensure your site only runs on HTTPS: +The following rule ensures your site only runs on HTTPS: ```xml From caf47d122533206177b3dde27049817b0c2f2f4b Mon Sep 17 00:00:00 2001 From: Esha Noronha <82437098+eshanrnh@users.noreply.github.com> Date: Mon, 2 Dec 2024 09:43:49 +0100 Subject: [PATCH 05/10] Update 15/umbraco-cms/reference/routing/iisrewriterules.md Co-authored-by: sofietoft --- 15/umbraco-cms/reference/routing/iisrewriterules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/15/umbraco-cms/reference/routing/iisrewriterules.md b/15/umbraco-cms/reference/routing/iisrewriterules.md index 9eedaa86b4c..3b33dafd933 100644 --- a/15/umbraco-cms/reference/routing/iisrewriterules.md +++ b/15/umbraco-cms/reference/routing/iisrewriterules.md @@ -132,7 +132,7 @@ The following rule ensures your site only runs on HTTPS: ### Example: Redirect Non-www to www -To redirect traffic from non-www to www (excluding the Umbraco Cloud project hostname): +The following rule redirects traffic from non-www to www (excluding the Umbraco Cloud project hostname): ```xml From 81f2470bbaa66e621c49b4c3db4b970ef5b39ed3 Mon Sep 17 00:00:00 2001 From: Esha Noronha <82437098+eshanrnh@users.noreply.github.com> Date: Mon, 2 Dec 2024 09:44:27 +0100 Subject: [PATCH 06/10] Update 15/umbraco-cms/reference/routing/iisrewriterules.md Co-authored-by: sofietoft --- 15/umbraco-cms/reference/routing/iisrewriterules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/15/umbraco-cms/reference/routing/iisrewriterules.md b/15/umbraco-cms/reference/routing/iisrewriterules.md index 3b33dafd933..7885c5d4d7e 100644 --- a/15/umbraco-cms/reference/routing/iisrewriterules.md +++ b/15/umbraco-cms/reference/routing/iisrewriterules.md @@ -148,7 +148,7 @@ The following rule redirects traffic from non-www to www (excluding the Umbraco ### Example: Remove the .aspx Extension -If you want to redirect .aspx URLs to their extensionless counterparts, you can use the following rule. Make sure you also have a web.config file in the root of your site: +The following rule redirects `.aspx` URLs to their extensionless counterparts. Make sure you also have a `web.config` file in the root of your site. ```xml From beb502941974e1df07b2653ca734882a5fcb960a Mon Sep 17 00:00:00 2001 From: Esha Noronha Date: Mon, 2 Dec 2024 09:50:21 +0100 Subject: [PATCH 07/10] Incoproated suggestions --- .../reference/routing/iisrewriterules.md | 61 +++++++++++++++++-- .../reference/routing/iisrewriterules.md | 61 +++++++++++++++++-- .../reference/routing/iisrewriterules.md | 61 +++++++++++++++++-- .../reference/routing/iisrewriterules.md | 22 ++----- .../manage-hostnames/rewrites-on-cloud.md | 19 ++++++ 5 files changed, 193 insertions(+), 31 deletions(-) diff --git a/10/umbraco-cms/reference/routing/iisrewriterules.md b/10/umbraco-cms/reference/routing/iisrewriterules.md index 3ec50ecbb7d..ccfcbad347f 100644 --- a/10/umbraco-cms/reference/routing/iisrewriterules.md +++ b/10/umbraco-cms/reference/routing/iisrewriterules.md @@ -87,7 +87,9 @@ For more details and other examples, take a look at the [URL Rewriting Middlewar * Another site showing some handy examples of IIS Rewrite rules: [Some useful IIS rewrite rules](https://odetocode.com/blogs/scott/archive/2014/03/27/some-useful-iis-rewrite-rules.aspx) * If you needed to a lot of static rewrites using rewrite maps: [Rule with rewrite map rule template](https://www.iis.net/learn/extensions/url-rewrite-module/rule-with-rewrite-map-rule-template) -For example, to always remove a trailing slash from the URL (make sure Umbraco doesn't add a trailing slash to all generated URLs by setting `AddTrailingSlash` to `false` in your [RequestHandler settings](../configuration/requesthandlersettings.md)): +### Example: Remove a Trailing Slash + +The following rule removes any trailing slashes from the URL. ```xml @@ -101,7 +103,11 @@ For example, to always remove a trailing slash from the URL (make sure Umbraco d ``` -Another example would be to enforce HTTPS only on your site: +Ensure Umbraco does not add a trailing slash by setting `AddTrailingSlash` to `false` in your [RequestHandler settings](../configuration/requesthandlersettings.md). + +### Example: Enforce HTTPS + +The following rule ensures your site only runs on HTTPS: ```xml @@ -114,7 +120,9 @@ Another example would be to enforce HTTPS only on your site: ``` -Another example would be to redirect from non-www to www (except for the Umbraco Cloud project hostname): +### Example: Redirect Non-www to www + +The following rule redirects traffic from non-www to www (excluding the Umbraco Cloud project hostname): ```xml @@ -128,6 +136,49 @@ Another example would be to redirect from non-www to www (except for the Umbraco ``` -{% hint style="warning" %} -If you use **Umbraco Cloud** check the [Rewrite Rules](https://docs.umbraco.com/umbraco-cloud/set-up/project-settings/manage-hostnames/rewrites-on-cloud) article. +### Example: Remove the .aspx Extension + +The following rule redirects `.aspx` URLs to their extensionless counterparts. + +```xml + + + + + + + + + + + + + + + + + +``` + +### Example: Custom Rewrite Rules for Umbraco Cloud + +An example configuration to help ensure your custom rules integrate properly: + +```xml + + + + + + + + + + + + +``` + +{% hint style="info" %} +If you use **Umbraco Cloud**, check the [Rewrite Rules](https://docs.umbraco.com/umbraco-cloud/set-up/project-settings/manage-hostnames/rewrites-on-cloud) article. {% endhint %} diff --git a/13/umbraco-cms/reference/routing/iisrewriterules.md b/13/umbraco-cms/reference/routing/iisrewriterules.md index a05293b530d..3bfcd56c0e2 100644 --- a/13/umbraco-cms/reference/routing/iisrewriterules.md +++ b/13/umbraco-cms/reference/routing/iisrewriterules.md @@ -87,7 +87,9 @@ For more details and other examples, take a look at the [URL Rewriting Middlewar * Another site showing some handy examples of IIS Rewrite rules: [Some useful IIS rewrite rules](https://odetocode.com/blogs/scott/archive/2014/03/27/some-useful-iis-rewrite-rules.aspx) * If you needed to a lot of static rewrites using rewrite maps: [Rule with rewrite map rule template](https://www.iis.net/learn/extensions/url-rewrite-module/rule-with-rewrite-map-rule-template) -For example, to always remove a trailing slash from the URL (make sure Umbraco doesn't add a trailing slash to all generated URLs by setting `AddTrailingSlash` to `false` in your [RequestHandler settings](../configuration/requesthandlersettings.md)): +### Example: Remove a Trailing Slash + +The following rule removes any trailing slashes from the URL. ```xml @@ -101,7 +103,11 @@ For example, to always remove a trailing slash from the URL (make sure Umbraco d ``` -Another example would be to enforce HTTPS only on your site: +Ensure Umbraco does not add a trailing slash by setting `AddTrailingSlash` to `false` in your [RequestHandler settings](../configuration/requesthandlersettings.md). + +### Example: Enforce HTTPS + +The following rule ensures your site only runs on HTTPS: ```xml @@ -114,7 +120,9 @@ Another example would be to enforce HTTPS only on your site: ``` -Another example would be to redirect from non-www to www (except for the Umbraco Cloud project hostname): +### Example: Redirect Non-www to www + +The following rule redirects traffic from non-www to www (excluding the Umbraco Cloud project hostname): ```xml @@ -128,6 +136,49 @@ Another example would be to redirect from non-www to www (except for the Umbraco ``` -{% hint style="warning" %} -If you use **Umbraco Cloud** check the [Rewrite Rules](https://docs.umbraco.com/umbraco-cloud/set-up/project-settings/manage-hostnames/rewrites-on-cloud) article. +### Example: Remove the .aspx Extension + +The following rule redirects `.aspx` URLs to their extensionless counterparts. + +```xml + + + + + + + + + + + + + + + + + +``` + +### Example: Custom Rewrite Rules for Umbraco Cloud + +An example configuration to help ensure your custom rules integrate properly: + +```xml + + + + + + + + + + + + +``` + +{% hint style="info" %} +If you use **Umbraco Cloud**, check the [Rewrite Rules](https://docs.umbraco.com/umbraco-cloud/set-up/project-settings/manage-hostnames/rewrites-on-cloud) article. {% endhint %} diff --git a/14/umbraco-cms/reference/routing/iisrewriterules.md b/14/umbraco-cms/reference/routing/iisrewriterules.md index a05293b530d..3bfcd56c0e2 100644 --- a/14/umbraco-cms/reference/routing/iisrewriterules.md +++ b/14/umbraco-cms/reference/routing/iisrewriterules.md @@ -87,7 +87,9 @@ For more details and other examples, take a look at the [URL Rewriting Middlewar * Another site showing some handy examples of IIS Rewrite rules: [Some useful IIS rewrite rules](https://odetocode.com/blogs/scott/archive/2014/03/27/some-useful-iis-rewrite-rules.aspx) * If you needed to a lot of static rewrites using rewrite maps: [Rule with rewrite map rule template](https://www.iis.net/learn/extensions/url-rewrite-module/rule-with-rewrite-map-rule-template) -For example, to always remove a trailing slash from the URL (make sure Umbraco doesn't add a trailing slash to all generated URLs by setting `AddTrailingSlash` to `false` in your [RequestHandler settings](../configuration/requesthandlersettings.md)): +### Example: Remove a Trailing Slash + +The following rule removes any trailing slashes from the URL. ```xml @@ -101,7 +103,11 @@ For example, to always remove a trailing slash from the URL (make sure Umbraco d ``` -Another example would be to enforce HTTPS only on your site: +Ensure Umbraco does not add a trailing slash by setting `AddTrailingSlash` to `false` in your [RequestHandler settings](../configuration/requesthandlersettings.md). + +### Example: Enforce HTTPS + +The following rule ensures your site only runs on HTTPS: ```xml @@ -114,7 +120,9 @@ Another example would be to enforce HTTPS only on your site: ``` -Another example would be to redirect from non-www to www (except for the Umbraco Cloud project hostname): +### Example: Redirect Non-www to www + +The following rule redirects traffic from non-www to www (excluding the Umbraco Cloud project hostname): ```xml @@ -128,6 +136,49 @@ Another example would be to redirect from non-www to www (except for the Umbraco ``` -{% hint style="warning" %} -If you use **Umbraco Cloud** check the [Rewrite Rules](https://docs.umbraco.com/umbraco-cloud/set-up/project-settings/manage-hostnames/rewrites-on-cloud) article. +### Example: Remove the .aspx Extension + +The following rule redirects `.aspx` URLs to their extensionless counterparts. + +```xml + + + + + + + + + + + + + + + + + +``` + +### Example: Custom Rewrite Rules for Umbraco Cloud + +An example configuration to help ensure your custom rules integrate properly: + +```xml + + + + + + + + + + + + +``` + +{% hint style="info" %} +If you use **Umbraco Cloud**, check the [Rewrite Rules](https://docs.umbraco.com/umbraco-cloud/set-up/project-settings/manage-hostnames/rewrites-on-cloud) article. {% endhint %} diff --git a/15/umbraco-cms/reference/routing/iisrewriterules.md b/15/umbraco-cms/reference/routing/iisrewriterules.md index 7885c5d4d7e..3bfcd56c0e2 100644 --- a/15/umbraco-cms/reference/routing/iisrewriterules.md +++ b/15/umbraco-cms/reference/routing/iisrewriterules.md @@ -83,26 +83,14 @@ For more details and other examples, take a look at the [URL Rewriting Middlewar ## Examples of rewrite rules -Below are some handy IIS Rewrite Rules you can use in your projects: - -* **10 Handy IIS Rewrite Rules** - -A great resource showcasing 10 practical IIS Rewrite rules: [URL rewriting tips and tricks](https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/) - -* **Examples of IIS Rewrite Rules** - -Another useful collection of IIS rewrite rule examples: [Some useful IIS rewrite rules](https://odetocode.com/blogs/scott/archive/2014/03/27/some-useful-iis-rewrite-rules.aspx) - -* **Static Rewrites Using Rewrite Maps** - -If you need to handle a lot of static rewrites, consider using rewrite maps: [Rule with rewrite map rule template](https://www.iis.net/learn/extensions/url-rewrite-module/rule-with-rewrite-map-rule-template) +* A great site showing 10 very handy IIS Rewrite rules: [URL rewriting tips and tricks](https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/) +* Another site showing some handy examples of IIS Rewrite rules: [Some useful IIS rewrite rules](https://odetocode.com/blogs/scott/archive/2014/03/27/some-useful-iis-rewrite-rules.aspx) +* If you needed to a lot of static rewrites using rewrite maps: [Rule with rewrite map rule template](https://www.iis.net/learn/extensions/url-rewrite-module/rule-with-rewrite-map-rule-template) ### Example: Remove a Trailing Slash The following rule removes any trailing slashes from the URL. -Ensure Umbraco does not add a trailing slash by setting `AddTrailingSlash` to `false` in your [RequestHandler settings](../configuration/requesthandlersettings.md). - ```xml @@ -115,6 +103,8 @@ Ensure Umbraco does not add a trailing slash by setting `AddTrailingSlash` to `f ``` +Ensure Umbraco does not add a trailing slash by setting `AddTrailingSlash` to `false` in your [RequestHandler settings](../configuration/requesthandlersettings.md). + ### Example: Enforce HTTPS The following rule ensures your site only runs on HTTPS: @@ -148,7 +138,7 @@ The following rule redirects traffic from non-www to www (excluding the Umbraco ### Example: Remove the .aspx Extension -The following rule redirects `.aspx` URLs to their extensionless counterparts. Make sure you also have a `web.config` file in the root of your site. +The following rule redirects `.aspx` URLs to their extensionless counterparts. ```xml diff --git a/umbraco-cloud/set-up/project-settings/manage-hostnames/rewrites-on-cloud.md b/umbraco-cloud/set-up/project-settings/manage-hostnames/rewrites-on-cloud.md index 73d3688ce8a..8e9cc9647c3 100644 --- a/umbraco-cloud/set-up/project-settings/manage-hostnames/rewrites-on-cloud.md +++ b/umbraco-cloud/set-up/project-settings/manage-hostnames/rewrites-on-cloud.md @@ -123,6 +123,25 @@ Another example would be to redirect from non-www to www: ``` +## Custom Rewrite Rules for Umbraco Cloud + +An example configuration to help ensure your custom rules integrate properly: + +```xml + + + + + + + + + + + + +``` + {% hint style="warning" %} Adding the `.azurewebsites.net` pattern is required for the deployment service and the content transfer between environments to continue to function. {% endhint %} From 92bdd215857f809b4747c7ad52c4e3a7a2d844da Mon Sep 17 00:00:00 2001 From: Esha Noronha Date: Mon, 2 Dec 2024 10:07:19 +0100 Subject: [PATCH 08/10] Fixed placement of Note --- .../manage-hostnames/rewrites-on-cloud.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/umbraco-cloud/set-up/project-settings/manage-hostnames/rewrites-on-cloud.md b/umbraco-cloud/set-up/project-settings/manage-hostnames/rewrites-on-cloud.md index 8e9cc9647c3..1791df7cc40 100644 --- a/umbraco-cloud/set-up/project-settings/manage-hostnames/rewrites-on-cloud.md +++ b/umbraco-cloud/set-up/project-settings/manage-hostnames/rewrites-on-cloud.md @@ -123,6 +123,10 @@ Another example would be to redirect from non-www to www: ``` +{% hint style="warning" %} +Adding the `.azurewebsites.net` pattern is required for the deployment service and the content transfer between environments to continue to function. +{% endhint %} + ## Custom Rewrite Rules for Umbraco Cloud An example configuration to help ensure your custom rules integrate properly: @@ -142,10 +146,6 @@ An example configuration to help ensure your custom rules integrate properly: ``` -{% hint style="warning" %} -Adding the `.azurewebsites.net` pattern is required for the deployment service and the content transfer between environments to continue to function. -{% endhint %} - ## Troubleshooting Sometimes, you might experience an issue where a `.azurewebsites.net` link will appear instead of the custom hostname. In this case, a restart will usually fix the issue, however, it is not ideal that this appears at all. From dfcdd75216863ee7c3d2785f690a850455fe2daa Mon Sep 17 00:00:00 2001 From: Esha Noronha Date: Mon, 2 Dec 2024 14:09:19 +0100 Subject: [PATCH 09/10] Incoproated suggestion --- 15/umbraco-cms/reference/routing/iisrewriterules.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/15/umbraco-cms/reference/routing/iisrewriterules.md b/15/umbraco-cms/reference/routing/iisrewriterules.md index 3bfcd56c0e2..8863fb573c9 100644 --- a/15/umbraco-cms/reference/routing/iisrewriterules.md +++ b/15/umbraco-cms/reference/routing/iisrewriterules.md @@ -83,7 +83,11 @@ For more details and other examples, take a look at the [URL Rewriting Middlewar ## Examples of rewrite rules -* A great site showing 10 very handy IIS Rewrite rules: [URL rewriting tips and tricks](https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/) +### External Resources + +If you are looking for additional inspiration or examples for creating IIS Rewrite rules, these external resources are a great starting point: + +* A great site showing 10 handy IIS Rewrite rules: [URL rewriting tips and tricks](https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/) * Another site showing some handy examples of IIS Rewrite rules: [Some useful IIS rewrite rules](https://odetocode.com/blogs/scott/archive/2014/03/27/some-useful-iis-rewrite-rules.aspx) * If you needed to a lot of static rewrites using rewrite maps: [Rule with rewrite map rule template](https://www.iis.net/learn/extensions/url-rewrite-module/rule-with-rewrite-map-rule-template) From c34e8f8ae687163abf617cb93bfbe71d6437f0a1 Mon Sep 17 00:00:00 2001 From: Esha Noronha Date: Mon, 2 Dec 2024 14:10:47 +0100 Subject: [PATCH 10/10] Incorporated suggestion for rest of the versions --- 10/umbraco-cms/reference/routing/iisrewriterules.md | 6 +++++- 13/umbraco-cms/reference/routing/iisrewriterules.md | 6 +++++- 14/umbraco-cms/reference/routing/iisrewriterules.md | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/10/umbraco-cms/reference/routing/iisrewriterules.md b/10/umbraco-cms/reference/routing/iisrewriterules.md index ccfcbad347f..3a48bc72f5a 100644 --- a/10/umbraco-cms/reference/routing/iisrewriterules.md +++ b/10/umbraco-cms/reference/routing/iisrewriterules.md @@ -83,7 +83,11 @@ For more details and other examples, take a look at the [URL Rewriting Middlewar ## Examples of rewrite rules -* A great site showing 10 very handy IIS Rewrite rules: [URL rewriting tips and tricks](https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/) +### External Resources + +If you are looking for additional inspiration or examples for creating IIS Rewrite rules, these external resources are a great starting point: + +* A great site showing 10 handy IIS Rewrite rules: [URL rewriting tips and tricks](https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/) * Another site showing some handy examples of IIS Rewrite rules: [Some useful IIS rewrite rules](https://odetocode.com/blogs/scott/archive/2014/03/27/some-useful-iis-rewrite-rules.aspx) * If you needed to a lot of static rewrites using rewrite maps: [Rule with rewrite map rule template](https://www.iis.net/learn/extensions/url-rewrite-module/rule-with-rewrite-map-rule-template) diff --git a/13/umbraco-cms/reference/routing/iisrewriterules.md b/13/umbraco-cms/reference/routing/iisrewriterules.md index 3bfcd56c0e2..8863fb573c9 100644 --- a/13/umbraco-cms/reference/routing/iisrewriterules.md +++ b/13/umbraco-cms/reference/routing/iisrewriterules.md @@ -83,7 +83,11 @@ For more details and other examples, take a look at the [URL Rewriting Middlewar ## Examples of rewrite rules -* A great site showing 10 very handy IIS Rewrite rules: [URL rewriting tips and tricks](https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/) +### External Resources + +If you are looking for additional inspiration or examples for creating IIS Rewrite rules, these external resources are a great starting point: + +* A great site showing 10 handy IIS Rewrite rules: [URL rewriting tips and tricks](https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/) * Another site showing some handy examples of IIS Rewrite rules: [Some useful IIS rewrite rules](https://odetocode.com/blogs/scott/archive/2014/03/27/some-useful-iis-rewrite-rules.aspx) * If you needed to a lot of static rewrites using rewrite maps: [Rule with rewrite map rule template](https://www.iis.net/learn/extensions/url-rewrite-module/rule-with-rewrite-map-rule-template) diff --git a/14/umbraco-cms/reference/routing/iisrewriterules.md b/14/umbraco-cms/reference/routing/iisrewriterules.md index 3bfcd56c0e2..8863fb573c9 100644 --- a/14/umbraco-cms/reference/routing/iisrewriterules.md +++ b/14/umbraco-cms/reference/routing/iisrewriterules.md @@ -83,7 +83,11 @@ For more details and other examples, take a look at the [URL Rewriting Middlewar ## Examples of rewrite rules -* A great site showing 10 very handy IIS Rewrite rules: [URL rewriting tips and tricks](https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/) +### External Resources + +If you are looking for additional inspiration or examples for creating IIS Rewrite rules, these external resources are a great starting point: + +* A great site showing 10 handy IIS Rewrite rules: [URL rewriting tips and tricks](https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/) * Another site showing some handy examples of IIS Rewrite rules: [Some useful IIS rewrite rules](https://odetocode.com/blogs/scott/archive/2014/03/27/some-useful-iis-rewrite-rules.aspx) * If you needed to a lot of static rewrites using rewrite maps: [Rule with rewrite map rule template](https://www.iis.net/learn/extensions/url-rewrite-module/rule-with-rewrite-map-rule-template)