View previous topic :: View next topic |
Author |
Message |
rinus -
Joined: 19 Jul 2004 Posts: 5
|
Posted: Mon Nov 19, 2007 10:08 am Post subject: Rewriting <?php include("inc/include.html") |
|
|
I use remote apache webserver to publish my website
On this server I've added this code in the .httaccess file in order to parse php in html files:
Code: | AddType application/x-httpd-php htm html |
I use local abyss webserver to create/modify/view the above site.
However it does not parse the php in the html files.
I tried to Rewrite the next include file back to the SSI include in abbyss:
Code: | <?php include("inc/include.html"); ?> |
to ----->
Code: | <!--#include file="inc/include.html"--> |
Can anyone help me with the regular expression?
I've tried everything in the configuration file (url rewrite feature) without success.
or would it be better to rewrite the .htaccess code?
Code: | AddType application/x-httpd-php htm html |
|
|
Back to top |
|
|
aprelium-beta -
Joined: 24 Jun 2004 Posts: 383
|
Posted: Mon Nov 19, 2007 6:04 pm Post subject: Re: Rewriting <?php include("inc/include.html") |
|
|
rinus,
There is no need for URL rewriting to have PHP process .htm and .html files. All you have to do is to edit the PHP interpreter declaration in "Scripting Parameters" and to add htm and html as "Associated Extensions" to the PHP interpreter (just as the php filename extension is associated with it). _________________ Beta Testing Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|