Re: Adding a single php file to .htaccess.
| From: | Dotan Cohen | Date: | Mon, 25 Aug 2008 13:28:39 +0000 |
| Subject: | Re: Adding a single php file to .htaccess. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-278663@lists.php.net to get a copy of this message | ||
2008/8/25 tedd <tedd.sperling@gmail.com>:
> Dotan:
>
> This is what I use to force php to consider certain files:
>
> # handler for phpsuexec..
> <FilesMatch "\.(htm|html|css|tpl)$">
> SetHandler application/x-httpd-php
> </FilesMatch>
>
> I occasionally use php in css files and this works for that.
>
> My understanding is that you could change the FilesMatch to whatever
> specific files you want. For example, if you had changed "contact.html" from
> Python to php it would read:
>
> <FilesMatch "contact.html">
>
> Would that solve the problem?
>
> Cheers,
>
> tedd
>
Thanks, as soon as I get to a place where I dare run SSH I will try
that. It looks to be just what I was looking for, thanks.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ä-ö-ü-ß-Ä-Ö-Ü