Re: htaccess to make html act as php suffixed files
| From: | Rodrigo Silva dos Santos | Date: | Tue, 11 Jun 2013 18:51:39 +0000 |
| Subject: | Re: htaccess to make html act as php suffixed files | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-321371@lists.php.net to get a copy of this message | ||
Em Ter 11 Jun 2013 15:08:59 BRT, Matijn Woudt escreveu:
On Tue, Jun 11, 2013 at 7:17 PM, Stuart Dallas <stuart@3ft9.com> wrote:ALSO, you have to be sure this site is using apache. Otherwise, .htaccess are not available.On 11 Jun 2013, at 18:16, Tedd Sperling <tedd@sperling.com> wrote:Or the .htaccess usage is not enabled at all in that site.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?At a rough guess there's an AllowOverride line in the main Apache config that's restricting what you can do in the .htaccess file.