My current website index file is in html and I would like to add something called tracewatch to keep track of my web stats. The only problem is that it says in order for it to work "Make sure the file is processed by the server as php (if the file extension is .html or .htm change it to .php)" How can I make to to where my index file is php and I can use this?
There are two ways: 1. Put the following lines in .htaccess AddType application/x-httpd-php .php .htm .html AddHandler x-httpd-php .php .htm .html Code (markup): so your html page will be processed as php. 2nd. Add this line: DirectoryIndex index.php Code (markup): Rename your index.html to index.php and put your php code there.