On the web site try adding a mime type of "." as an application/rtf.
How to download file without extension from IIS
sourav dutta
231
Reputation points
Hello,
I have a .rtf file in IIS directory.
I can able to download the file as "souravdutta.com/filename.rtf".
But my requirement is to download the file without extension as "souravdutta.com/filename".
Is this possible?
If yes then where to change in config file?
Windows development | Internet Information Services
Windows for business | Windows Server | User experience | Other
2 answers
Sort by: Most helpful
-
-
Lex Li 6,037 Reputation points2023-09-18T06:18:24.47+00:00 1. Install URL Rewrite module installed. 2. Open `web.config` file. 3. Add or modify the `<system.webServer>` section with the following ```xml <configuration> <system.webServer> <rewrite> <rules> <rule name="Rewrite to filename.rtf"> <match url="^filename$" /> <action type="Rewrite" url="filename.rtf" /> </rule> </rules> </rewrite> </system.webServer> </configuration>