Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions 13/umbraco-cms/reference/routing/iisrewriterules.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,38 @@ An example configuration to help ensure your custom rules integrate properly:
{% 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 %}

### Example: Serving Files from the `.well-known` Path

Some third-party services such as Apple Pay, Google, or other integrations, require you to host a verification file at a specific URL like:

```text
https://yourdomain.com/.well-known/apple-developer-merchantid-domain-association
```

On Umbraco Cloud, directly hosting files in the `.well-known` folder (for example, via Git or Kudu) may result in a 404 error due to platform restrictions.

To work around this, you can serve the required file using Umbraco's **Media** library along with an IIS rewrite rule.

To do so, follow these steps:

1. Go to the **Media** section in the Umbraco backoffice.
2. Create a folder named `.well-known`.
This folder is only for your own organization. It does not affect the public file URL.
3. Upload the verification file. For example: *test.txt*.

![Uploading Verification file in the Backoffice](images/upload-verification-file.png)

4. Copy the Media file URL. For example, `/media/4jhhlmxk/verification.txt`.
5. Add a rewrite rule in your `web.config` file:

```xml
<rule xdt:Transform="Insert" name="Rewrite Apple Developer Merchant ID" stopProcessing="true">
<match url="^\.well-known/apple-developer-merchantid-domain-association$" />
<action type="Rewrite" url="/media/4jhhlmxk/test.txt" />
</rule>
```

{% hint style="info" %}
Replace the `match` and `url` values with your specific Media path and verification filename.
{% endhint %}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions 14/umbraco-cms/reference/routing/iisrewriterules.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,38 @@ An example configuration to help ensure your custom rules integrate properly:
{% 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 %}

### Example: Serving Files from the `.well-known` Path

Some third-party services such as Apple Pay, Google, or other integrations, require you to host a verification file at a specific URL like:

```text
https://yourdomain.com/.well-known/apple-developer-merchantid-domain-association
```

On Umbraco Cloud, directly hosting files in the `.well-known` folder (for example, via Git or Kudu) may result in a 404 error due to platform restrictions.

To work around this, you can serve the required file using Umbraco's **Media** library along with an IIS rewrite rule.

To do so, follow these steps:

1. Go to the **Media** section in the Umbraco backoffice.
2. Create a folder named `.well-known`.
This folder is only for your own organization. It does not affect the public file URL.
3. Upload the verification file. For example: *test.txt*.

![Uploading Verification file in the Backoffice](images/upload-verification-file.png)

4. Copy the Media file URL. For example, `/media/4jhhlmxk/verification.txt`.
5. Add a rewrite rule in your `web.config` file:

```xml
<rule xdt:Transform="Insert" name="Rewrite Apple Developer Merchant ID" stopProcessing="true">
<match url="^\.well-known/apple-developer-merchantid-domain-association$" />
<action type="Rewrite" url="/media/4jhhlmxk/test.txt" />
</rule>
```

{% hint style="info" %}
Replace the `match` and `url` values with your specific Media path and verification filename.
{% endhint %}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions 15/umbraco-cms/reference/routing/iisrewriterules.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,38 @@ An example configuration to help ensure your custom rules integrate properly:
{% 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 %}

### Example: Serving Files from the `.well-known` Path

Some third-party services such as Apple Pay, Google, or other integrations, require you to host a verification file at a specific URL like:

```text
https://yourdomain.com/.well-known/apple-developer-merchantid-domain-association
```

On Umbraco Cloud, directly hosting files in the `.well-known` folder (for example, via Git or Kudu) may result in a 404 error due to platform restrictions.

To work around this, you can serve the required file using Umbraco's **Media** library along with an IIS rewrite rule.

To do so, follow these steps:

1. Go to the **Media** section in the Umbraco backoffice.
2. Create a folder named `.well-known`.
This folder is only for your own organization. It does not affect the public file URL.
3. Upload the verification file. For example: *test.txt*.

![Uploading Verification file in the Backoffice](images/upload-verification-file.png)

4. Copy the Media file URL. For example, `/media/4jhhlmxk/verification.txt`.
5. Add a rewrite rule in your `web.config` file:

```xml
<rule xdt:Transform="Insert" name="Rewrite Apple Developer Merchant ID" stopProcessing="true">
<match url="^\.well-known/apple-developer-merchantid-domain-association$" />
<action type="Rewrite" url="/media/4jhhlmxk/test.txt" />
</rule>
```

{% hint style="info" %}
Replace the `match` and `url` values with your specific Media path and verification filename.
{% endhint %}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions 16/umbraco-cms/reference/routing/iisrewriterules.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,38 @@ An example configuration to help ensure your custom rules integrate properly:
{% 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 %}

### Example: Serving Files from the `.well-known` Path

Some third-party services such as Apple Pay, Google, or other integrations, require you to host a verification file at a specific URL like:

```text
https://yourdomain.com/.well-known/apple-developer-merchantid-domain-association
```

On Umbraco Cloud, directly hosting files in the `.well-known` folder (for example, via Git or Kudu) may result in a 404 error due to platform restrictions.

To work around this, you can serve the required file using Umbraco's **Media** library along with an IIS rewrite rule.

To do so, follow these steps:

1. Go to the **Media** section in the Umbraco backoffice.
2. Create a folder named `.well-known`.
This folder is only for your own organization. It does not affect the public file URL.
3. Upload the verification file. For example: *test.txt*.

![Uploading Verification file in the Backoffice](images/upload-verification-file.png)

4. Copy the Media file URL. For example, `/media/4jhhlmxk/verification.txt`.
5. Add a rewrite rule in your `web.config` file:

```xml
<rule xdt:Transform="Insert" name="Rewrite Apple Developer Merchant ID" stopProcessing="true">
<match url="^\.well-known/apple-developer-merchantid-domain-association$" />
<action type="Rewrite" url="/media/4jhhlmxk/test.txt" />
</rule>
```

{% hint style="info" %}
Replace the `match` and `url` values with your specific Media path and verification filename.
{% endhint %}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.