htaccess to make html act as php suffixed files
| From: | Tedd Sperling | Date: | Tue, 11 Jun 2013 17:16:01 +0000 |
| Subject: | htaccess to make html act as php suffixed files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-321368@lists.php.net to get a copy of this message | ||
Hi gang:
To get html pages to use php scripts, I've used:
RewriteEngine on
# handler for phpsuexec. -- this makes these prefixes considered for php
<FilesMatch "\.(htm|html)$">
SetHandler application/x-httpd-php
</FilesMatch>
In a .htaccess file.
However, it works on one site, but not on another -- any ideas as to why?
Cheers,
tedd
_____________________
tedd@sperling.com
http://sperling.com