Tracking Incoming Hits without PHP

Our support will answer all your general questions here.

Moderator: Rock

Post Reply
gaydemon
Posts: 4
Joined: Mon May 24, 2010 3:31 pm

Tracking Incoming Hits without PHP

Post 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.
lucastraffic
Posts: 6
Joined: Fri Apr 12, 2013 11:40 am

Re: Tracking Incoming Hits without PHP

Post 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
gaydemon
Posts: 4
Joined: Mon May 24, 2010 3:31 pm

Re: Tracking Incoming Hits without PHP

Post 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.
lucastraffic
Posts: 6
Joined: Fri Apr 12, 2013 11:40 am

Re: Tracking Incoming Hits without PHP

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