Re: htaccess to make html act as php suffixed files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11 Jun 2013, at 18:16, Tedd Sperling <tedd@xxxxxxxxxxxx> wrote:

> 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.

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux