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.

Related Articles

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,...

How to add Swap Space in Centos 7.x?

First, let's understand what swap space is. In a Linux machine, swap space is used when the...

How to activate CloudFlare in cPanel?

AccuWebHosting has partnered with CloudFlare to offer CloudFlare services to all Linux Shared...

When I connect to FTP account through filezilla it always says certificate is unknown. What am I missing here?

This error is common because FTP service of our shared server is bound with server's Self-Signed...

Do you provide SFTP in Linux Shared Hosting Plans?

No. We do not provide SFTP (Secure FTP over SSH). However, we support, FTPS (FTP over explicit...

  • 0 Users Found This Useful

Was this answer helpful?