The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #1  
Old 09-22-2017, 04:27 PM
IGH's Avatar
IGH is offline
 
Join Date: Feb 2011
Location: UK
Posts: 16
Default

sitemap.xml - add category and product pages to your sites existing sitemap.xml for better SEO


This Python script will get your current sitemap.xml, then get all the category and product links for your Ecwid store, and merge them all into a new sitemap.xml.

Get the script from this gist on GitHub

This could improve the indexing of your site, and SEO.
Adding a Sitemap: http://my.site.com/sitemap.xml record to robots.txt tells crawlers where your sitemap is, which can help too.

The script can generate store page URLs using the regular "hash bang", clean or querystring style URLs

Edit the script and set the 4 constants to configure the script for your store.

Example usage from a linux terminal (create the file, then ssh copy it to the server):

Code:
python update_sitemap_ecwid.py > sitemap.xml
scp sitemap.xml my_server:mysite/public_html/sitemap.xml
Cheers!
Ian
The Following User Says Thank You to IGH For This Useful Post:
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
python, seo, sitemap

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:56 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.