shtml pages are geting downloaded instead of be opened

Created:

2016-11-16 13:22:58 UTC

Modified:

2017-08-08 13:44:11 UTC

0

Was this article helpful?


Have more questions?

Submit a request

shtml pages are geting downloaded instead of be opened

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

SSI support is enabled in Plesk > Subscriptions > <subscription name> > Hosting Settings .

.shtml pages are getting downloaded instead of be opened.

All pages except of .shtml are working fine on the website.

Cause

Apache rules misconfiguration.

Resolution

  1. Make sure that file has a proper ownership. The owner should be domain_ftp_user and the group should be psacln .

  2. Make sure that file /etc/httpd/conf/httpd.conf contains the following lines:

    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
  3. If website uses .htaccess file, make sure that it does not contain lines like below:

    AddType application/x-httpd-php .shtml

    Remove this line or .shtml extension from this line if it contains several extensions.

Have more questions? Submit a request
Please sign in to leave a comment.