PHP in sitemap_tpl.html?
« on: February 11, 2006, 05:10:21 PM »
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?
Re: PHP in sitemap_tpl.html?
« Reply #1 on: February 11, 2006, 08:50:21 PM »
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:
Quote
AddType application/x-httpd-php .html
Re: PHP in sitemap_tpl.html?
« Reply #2 on: February 12, 2006, 03:46:51 AM »
Works great thanks!