• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create sitemap XML?

I have the store based website I want to create sitemap XML but I didn't know how to create please help?

Google Sitemap Generator
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

You can dynamically create an XML sitemap in CI through a cronjob executed function that builds the XML based on your specific content setup. Simply loop through the individual content tables and add the relevant data:

Set the orgins, then loop through the origin by getting that table from the DB then loop through the origin content to build the XML. Ideally for each orgin you build an extra XML and create a master sitemap.xml while you are at in case you exceed 50k pages.

Then just store the XML on the server (i.e. @file_put_contents('./sitemap.xml', $sitemap); and you are good.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.