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.
Tracking Incoming Hits without PHP
Moderator: Rock
-
- Posts: 6
- Joined: Fri Apr 12, 2013 11:40 am
Re: Tracking Incoming Hits without PHP
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
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
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.
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.
-
- Posts: 6
- Joined: Fri Apr 12, 2013 11:40 am
Re: Tracking Incoming Hits without PHP
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.
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.