Page 1 of 1

Tracking Incoming Hits without PHP

Posted: Thu Apr 03, 2014 5:09 pm
by gaydemon
Hi,

Is there any way to track incoming hits without PHP or a .shtml extension? My site is mainly static html pages built by a large cms, changing all the extensions or even a few to .shtml isn't easy. Is there any other way with virtual include to do it on a normal html page? The old version of TE worked fine on normal page.

Re: Tracking Incoming Hits without PHP

Posted: Thu Apr 03, 2014 5:52 pm
by lucastraffic
Why not use RemoveHandler?

Add this to your .htaccess

RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html

and you can use php in html files...

If there is no .htaccess create one

Re: Tracking Incoming Hits without PHP

Posted: Thu Apr 03, 2014 6:41 pm
by gaydemon
I already do remove file extensions.

I did actually try using the SSI but on a normal .html file, that seems to work fine. So seems to not matter if the actual file extension is shtml or html.

Re: Tracking Incoming Hits without PHP

Posted: Thu Apr 03, 2014 6:53 pm
by lucastraffic
When you use php include:

include("te3/in.php");
or
include("/FULL/PATH/TO/te3/in.php");
or
virtual("/te3/in.php");

you do not have to use .shtml files.