Rewriting <?php include("inc/include.html")

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
rinus
-


Joined: 19 Jul 2004
Posts: 5

PostPosted: Mon Nov 19, 2007 10:08 am    Post subject: Rewriting <?php include("inc/include.html") Reply with quote

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 View user's profile Send private message
aprelium-beta
-


Joined: 24 Jun 2004
Posts: 383

PostPosted: Mon Nov 19, 2007 6:04 pm    Post subject: Re: Rewriting <?php include("inc/include.html") Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group