I am utilizing IIS (v10) on my Home windows Server 2022 to host my webpages.
I have to serve a JSON file on my .well-know folder so my iOS app deeplinks works.
I’ve created the digital listing on my IIS web site (It is a touchdown web page, so it’s a HTML file, some js information and a css file) and served two JSON, one for android, different for iOS
Now the issue is that iOS tries to achieve the JSON with no extension on the url
like: my.area.com/.well-know/required-json as a substitute of
my.area.com/.well-know/required-json.json
I’ve tried to make use of URL Re-writing however did not labored.
That is my net.config…
<configuration>
<system.webServer>
<rewrite>
<guidelines>
<rule identify="Deal with Historical past Mode and customized 404/500" stopProcessing="true">
<match url="(.*)" />
<situations logicalGrouping="MatchAll">
<add enter="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add enter="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</situations>
<motion kind="Rewrite" url="/" />
</rule>
<rule identify="http to https" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" />
<situations>
<add enter="{HTTPS}" sample="off" />
</situations>
<motion kind="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Discovered" />
</rule>
</guidelines>
</rewrite>
<modules>
<take away identify="WebDAVModule" />
</modules>
</system.webServer>
</configuration>
Any thought of how can I obtain this?