The htaccess file
There is a way to have html pages treated as php pages. It is not always possible depending on your server setup, but it is worth the try.
For that, put an htaccess file at your site root which tells the server to treat html pages as php pages. You can download that htaccess file by clicking the link below. Be careful: if there is already an htaccess file at your site root, do not suppress it, copy the content of the downloaded one into the existing one.
Do not forget to put the php opening tag before the CrawlTrack tag and the closing tag after it.
Some hosts disable AddType overrides for security reasons. If the page downloads instead of rendering, the rule is not allowed and you should ask your provider before trying another approach.
Server references
Sources and further reading, all outside this site. They open in a new context and are listed for reference only.
- Apache AddType directive how file types are mapped to handlers
- Apache htaccess tutorial scope and allowed directives
- CrawlProtect companion script for site protection
- Media types how file types are served
- htaccess files background on the file
- PHP security running php on html files safely
- CrawlTrack forum ask about your host