XML Sitemaps Generator

Author Topic: PHP in sitemap_tpl.html?  (Read 28595 times)

d.bybordi

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 11
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?

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
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
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

d.bybordi

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 11
Re: PHP in sitemap_tpl.html?
« Reply #2 on: February 12, 2006, 03:46:51 AM »
Works great thanks!

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2