Skip to the main content

Free and open source since 2005, running on your own server

CrawlTrack Webmaster dashboard

How to use CrawlTrack with html pages

The CrawlTrack tag is written in php, so the page on which it sits needs to be treated as php. This is naturally the case for php pages, and it can also be arranged for html pages.

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.

Download the htaccess file

Do not forget to put the php opening tag before the CrawlTrack tag and the closing tag after it.

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

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.