Tsohost Knowledge Base

Serving .aspx and .asp files from Linux hosting type

Modified Wednesday 5th November, 2014 at 01:39

Was this helpful?

By default, we block requests for .asp and .aspx files on the Linux hosting type. This is for security - if you inadvertently set your Windows site to Linux, visitors would be able to see your asp/aspx code which is undesirable. This protection avoids that scenario occurring, however if you do want to serve asp/aspx files (as plain text, redirects or parsed as PHP), just add the following to your .htaccess file:


<FilesMatch "(?i)\.aspx$">
  allow from all

<FilesMatch "(?i)\.asp$">
 allow from all

You can enable one or both at your discretion.


Still can't find what you're looking for?

That's not a problem. Our 24/7 customer support team are friendly and waiting to help answer your questions. The easiest way to get in touch is to raise a support ticket; simply click the button below.

Open Support Ticket