Parse ASP pages as normal Text/HTML in cPanel server using MIME type

Problem statement


One of our customers had some old .ASP file names on his website. The web files didn't actually have ASP code, but all files had .ASP extension. This customer wanted us to parse .ASP files as normal Text/HTML.

Solution


We added following MIME type in cPanel to allow Apache to parse the .ASP files as normal Text/HTML.

  1. Login to cPanel.
  2. Under Advanced section, locate and click on MIME Types. At this point there are 2 boxes to fill out as follows.

    Add Mime Type

    MIME type: text/html
    Extensions: asp .asp
  3. Once you add above MIME type, Apache will parse your .ASP files as normal HTML.

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

Can I upgrade my shared hosting plan to VPS hosting?

Shared hosting plan cannot be upgraded to VPS hosting directly. You can purchase a separate VPS...

What is inode Limit in Linux Shared Hosting?

What is inode? Inode is a data structure that stores the information about all files created on...

How to Transfer Files Between Remote Systems?

This article will assist you to transfer web content between two remote Linux machines. cPanel...

How to Change PHP Version From cPanel?

This article will assist you to change PHP version from cPanel. Please note that the option of...

How to Reduce Spam in cPanel Hosting?

Nowadays Spam has become major annoyance with day to day email communications. You may have seen...