.shtml Doesn't Work in .htaccess

#1
OK, I know SSI doesn't work with LiteSpeed, but some of our customers had run SSI previously and are now changing their sites around. One wants to use PHP, but doesn't want to have to rename all several hundred pages of their site, so they added the following line to .htaccess

AddType application/x-httpd-php .shtml
None of the .shtml pages get parsed by PHP though... PHP itself works, we use the php suffix for everything else and it works, etc. We tried changing that to .html and it worked fine with a test .html file, but it just does not work with files with the .shtml extension.

Is anyone else seeing this issue? Any ideas?

Notes: No, I do not have it set for .shtml files to load from Apache. The .shtml page loads fine otherwise, except none of the PHP is parsed. I am loading an Apache configuration file, which has no other references to .shtml Having that line added to .htaccess or the Apache config return the same result.
 
#6
Wouldn't the suffix of "application/x-httpd-php" (php) just need to match the suffixes setup in the Script Handler configuration? There, both php and fastphp are setup. Also, if that were the issue, why would it have worked properly with "AddType application/x-httpd-php .html" for parsing .html files?
 

mistwang

LiteSpeed Staff
#7
This issue has been addressed in the latest 3.3.8 release package.
application/x-httpd-php would work with LSWS if "php" script handler has been defined.
It is better make it consistent with what used in Apache configuration though.
 
Top