GoWebsite.com provides Domain Registration
Website Hosting, On-Line Shopping Carts, SEO
Blog Hosting, Email Accounts, Security Certificates,
Merchant Accounts & other Website Products.
Free setup! Speak with us anytime: 480-624-2500

Modifying or Adding Custom MIME Types to Windows Hosting Accounts

Using a Windows hosting account running IIS 7 or 8, you can modify or add MIME types. This lets you specify how Web browsers handle file extensions. Your hosting account already handles a number of different MIME types. For more information, see What MIME types does my Windows hosting account support by default?.

How you work with MIME types depends on what kind of hosting account you have (more info).

Web/Classic (Hosting Control Panel)

To modify or add custom MIME types, you must create or edit your account's web.config file. For more information about web.config files, see ASP.NET's Web.Config Basics.

To Modify Existing MIME Types

Create or edit a web.config file in your account's root directory to include the following:

<configuration>
 <system.webServer>
   <staticContent>
   <remove fileExtension=".EXTENSION" />
     <mimeMap fileExtension=".EXTENSION" mimeType="TYPE/SUBTYPE" />
   </staticContent>
 </system.webServer>
</configuration>

Enter your own values for EXTENSION, TYPE, and SUBTYPE, where:

  • EXTENSION is the file extension you want to serve to the browser
  • TYPE is the MIME type you want to use, such as application, image, or video
  • SUBTYPE is the MIME subtype you want to use

For example, you could use this code in your web.config file, if you want to add MP4 files to your website:

<configuration>
 <system.webServer>
   <staticContent>
   <remove fileExtension=".mp4" />
     <mimeMap fileExtension=".mp4" mimeType="video/mp4" />
   </staticContent>
 </system.webServer>
</configuration>

To Add Custom MIME Types

Create or edit a web.config file in your account's root directory to include the following:

<configuration>
 <system.webServer>
   <staticContent>
     <mimeMap fileExtension=".EXTENSION" mimeType="TYPE/SUBTYPE" />
   </staticContent>
 </system.webServer>
</configuration>

Enter your own values for EXTENSION, TYPE, and SUBTYPE, where:

  • EXTENSION is the file extension you want to serve to the browser
  • TYPE is the MIME type you want to use, such as application, image, or video
  • SUBTYPE is the MIME subtype you want to use

Windows (Plesk)

Plesk has a built-in MIME type setting feature.

To Add or Modify MIME Types

  1. Log in to your Account Manager.
  2. Click Web Hosting.
  3. Next to the hosting account you want to use, click Manage.
  4. At the bottom of the section of the domain hosting you want to use, click Show More.
  5. Click Web Server Settings.
  6. In the MIME types section, select Enter custom value.
  7. Enter the MIME types you want to use, and then click OK.
Domain Registration
Pay less for website domain names. Register your own .com, .net or .org for as low as $10.18 per year. Everything you need to get online - FREE with your domain.
Website Builder
For as little as $3.89 per month you can build your Website online with Website Builder using our easy to use professional templates.
Play Video - Demo
Quick Shopping Cart
Build and run your own successful online store in minutes. You're just five easy steps away!
Shopping Cart works with Google® and eBay®
Play Video
Website Hosting
Everything needed to give your website the high-performance home it deserves.  Protect transactions and secure your customer's data with
a SSL Certificate