{"id":1470,"date":"2023-11-23T11:24:33","date_gmt":"2023-11-23T11:24:33","guid":{"rendered":"https:\/\/www.netexl.com\/blog\/?p=1470"},"modified":"2026-04-02T08:57:49","modified_gmt":"2026-04-02T08:57:49","slug":"serve-a-file-in-iis-which-has-no-extension","status":"publish","type":"post","link":"https:\/\/www.netexl.com\/blog\/serve-a-file-in-iis-which-has-no-extension\/","title":{"rendered":"Serve a file in IIS which has no extension"},"content":{"rendered":"\n<p>We need to add following config setting in web.config file in order to serve a file using IIS which has no extension.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;configuration>\r\n  &lt;system.webServer>\r\n\t&lt;staticContent>\r\n        &lt;mimeMap fileExtension=\".\" mimeType=\"text\/plain\" \/>\r\n    &lt;\/staticContent>\r\n  &lt;\/system.webServer>\r\n&lt;\/configuration>\r<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>We need to add following config setting in web.config file in order to serve a file using IIS which has no extension.<\/p>\n","protected":false},"author":5,"featured_media":1539,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,33,14,22,34],"tags":[],"class_list":["post-1470","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-asp-net","category-code","category-how-to","category-quick-tip","category-useful"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/1470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/comments?post=1470"}],"version-history":[{"count":2,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/1470\/revisions"}],"predecessor-version":[{"id":1472,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/1470\/revisions\/1472"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/media\/1539"}],"wp:attachment":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/media?parent=1470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/categories?post=1470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/tags?post=1470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}