• Welcome to Sitemap Generator Forum.
 

PHP in sitemap_tpl.html?

Started by d.bybordi, February 11, 2006, 05:10:21 PM

Previous topic - Next topic

d.bybordi

Hey could you tell me the best way to include php in the sitemap template? I noticed my php doesn't show up..I'm presuming its because the file is a html file...how do I go about making this work?

XML-Sitemaps Support

Hi,

you can either rename all sitemap files to *.php after generation is complete or try to create .htaccess file in the folder with html sitemap and add the following there:
QuoteAddType application/x-httpd-php .html

d.bybordi