How to download file without extension from IIS

sourav dutta 181 Reputation points


I have a .rtf file in IIS directory.

I can able to download the file as "".

But my requirement is to download the file without extension as "".

Is this possible?

If yes then where to change in config file?

Internet Information Services
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
10,630 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. MotoX80 27,546 Reputation points

    On the web site try adding a mime type of "." as an application/rtf.

    User's image

    0 comments No comments

  2. Lex Li (Microsoft) 3,896 Reputation points
    1. Install URL Rewrite module installed.
    2. Open `web.config` file.
    3. Add or modify the `<system.webServer>` section with the following
                    <rule name="Rewrite to filename.rtf">
                        <match url="^filename$" />
                        <action type="Rewrite" url="filename.rtf" />
    0 comments No comments