Custom file extensions to be managed by PHP

Experiencing problem concerning .htm files in goDaddy shared hosting.

Scripts that partner is using written in not standard way and all files have .htm extensions don’t know why!

Reason can be somehow related to SEO. But it does not matter since problem exists and need solution ASAP.

GoDaddy support is telling that it’s possible to solve problem via .htaccess file using AddType Apache directive like

” AddType application/x-shockwave-flash swf ” - sourceĀ http://help.godaddy.com/article/375

Tried both directives

AddHandler application/x-httpd-php .htm

AddType application/x-httpd-php .htm

But no results. Planning to contact again and clarify.

Will let you know when will find solution to this problem. I presume that problem specific to hosting since .htaccess file in sources was working on previous hosting service.

Update: Two days after found solution in help topics of same hosting service.

AddHandler x-httpd-php5 .php .htm .html

Leave a Reply