Toll Free: 1-877-695-7388

GTA: (647) 699-2838

Search Engine People
  • SEO
  • SEM
  • CRO
  • Display
  • Blog
  • Why Us
  • Contact
  • Join Our Team
  • Get A Quote

Toll Free: 1-877-695-7388

GTA: (647) 699-2838

ColdFusion code to create Google Sitemaps

Donna Fontenot | June 6th, 2005
Tweet
Share
Share
Pin
0 Shares

Below is some ColdFusion code which will create the output for the new Google Sitemap program. It assumes you have already created a text file with a list of urls that you want included in the sitemap (one url on each line). Simply change the path in the two cffile tags to point to your original text file's location as well as the location of the xml file that will be generated. Then just run the script (can only be run on a ColdFusion server, of course, and the server must support CFFILE). Running the script will create a file called sitemap.xml that you can then submit to Google.

I haven't yet created code to automatically generate the original list of urls, but I will be working on that. Most likely, though, each person will have to do their own code for this as everyone's needs will be different. You may also need to make changes to this script to suit your needs. For example, you might want to pull from a database rather than a text file. If so, your database may contain fields that would be able to generate unique dates for each url, and/or unique priorities for each url. This is just a simple example of code that uses the same date and priority for every url. Still, I hope this helps some ColdFusion programmers out there who want to create their new Google sitemaps with a minimum of hassle.

WordPress refuses to display this properly, so click here to download a text file.
Tweet
Share
Share
Pin
0 Shares
Posted in SEO

Recent Posts

  • Maximizing Your E-Commerce Sales:
    A CRO Audit Guide
  • Movin’ On Up! Why Migrating to Google Analytics 4 (GA4) Should be a Priority
  • A Year in Review: The Digital Marketing Trends That Defined 2021
  • The Basics of Video Marketing
  • Just How Much Do Google Reviews Impact Your SEO Ranking?

Categories

  • Analytics & ROI Analysis
  • Company News
  • Content
  • Conversion Optimization
  • CRO
  • Display Advertising/RTB
  • Email Marketing
  • En Español
  • En Français
  • Inbound Marketing
  • Lead Nurture & Marketing Automation
  • Local Search
  • Marketing
  • Mobile
  • Partnership Marketing
  • PPC
  • PR
  • SEO
  • Social Media Marketing
  • Web Design

Additional Posts

CSS Navigation Wizard

June 5th, 2005 | by Donna Fontenot

Understanding Google Sitemaps XML

June 4th, 2005 | by Donna Fontenot

Personal Long Tail SEO Experiences

June 2nd, 2005 | by Donna Fontenot

LET'S TALK

Need more information or want to get in touch?

Get in touch!
  • SEO
  • SEM
  • Display
  • Blog
  • Why Us
  • Join Our Team
  • Contact Us
  • Local SEO
  • Small Business SEO
  • Enterprise SEO
  • International SEO

LOCATION

1305 Pickering Parkway,
5th Floor Pickering, L1V 3P2

PHONE

Toll Free: 1-877-695-7388
Greater Toronto Area: (647) 699-2838

Social

© Search Engine People Inc. 2023 – Canada’s Top Digital Agency
© SEP 2023 – A Search Engine People Company | Privacy Policy

Search Engine People