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

Parse HTML As PHP Using HTACCESS File

There are times wherein you are required to parse HTML web pages as PHP. Suppose, you have older...

How Do I send .eml File in Emails?

If you are facing an error like "not allowed extension file" while you send .eml file in emails,...

A subdomain that I have created isn't working.

Please note that subdomain requires DNS propagation and it may take upto 24 hours. If DNS...

I am having an upload error. What is maximum upload limit in Shared Hosting?

Linux Shared Hosting In Linux Shared Hosting, we have restricted the upload size limit to 2 MB...

What Software Do You Use for Webmail?

Windows Shared Hosting With all Windows Shared Hosting plans, we offer SmarterMail as a mail...