UK Webmaster Talk - Online Marketing - SEO


 

A different but powerful sitemap concept

This is a discussion on A different but powerful sitemap concept within the Search Engine Optimisation (SEO) forums, part of the Search Engines & Website Promotion category; Don't know if you folks have come across this yet but I think it's gonna become a powerful tool in ...


Go Back   UK Webmaster Talk - Online Marketing - SEO > Search Engines & Website Promotion > Search Engine Optimisation (SEO)

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices

Reply

 

LinkBack Thread Tools Display Modes
Old 07-06-2005, 13:12   #1 (permalink)
Newbie
 
Join Date: Apr 2005
Posts: 10
iTrader: 0 / 0%
geriatrix is on a distinguished road
Default A different but powerful sitemap concept

Don't know if you folks have come across this yet but I think it's gonna become a powerful tool in the SEO toolbox.

https://www.google.com/webmasters/si...generator.html

If you have Python installed on your server then it really is a 15 minute job to get it installed, add it to a cron or schedule and you can keep your sitemap.xml updated automatically.

If you are on a Windows server there is a bug in the Python code which produces "\" instead of "/" but I have written a bit of vbs to correct this. Create a batch file and after the python code has been run create a VBS file (biteme.vbs in this example) and place it in the same directory as the sitemap.xml file, then call it using cscript. For example cscript biteme.vbs

PHP Code:
REM ------|Contents of biteme.vbs|------
set dbIn fso.opentextfile("sitemap.xml",1)
set dbOut fso.opentextfile("sitemap.tmp",2,True)

Do While 
Not dbIn.AtEndOfStream
  str 
dbIn.ReadLine
  str
=replace(str,"\","/")
  dbOut.WriteLine str
loop

dbOut.Close
dbIn.Close


fso.CopyFile "
sitemap.tmp", "sitemap.xml"
fso.DeleteFile "
sitemap.tmp
Martyn
geriatrix is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-06-2005, 16:23   #2 (permalink)
Moderator
 
Join Date: Jan 2005
Location: post is there >>
Posts: 1,586
iTrader: 0 / 0%
robertall is just really nice
Send a message via AIM to robertall Send a message via MSN to robertall
Default

Thanks for the link mate, i did not know that google released some open source software.
__________________
Free .org domain - Click for details!
Do not pm asking for things. My inbox is full. Add me to MSN!
robertall is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 15-06-2005, 19:46   #3 (permalink)
Moderator
 
Join Date: Mar 2005
Location: Barnsley, UK
Posts: 1,001
iTrader: 0 / 0%
Wistow has a reputation beyond reputeWistow has a reputation beyond reputeWistow has a reputation beyond reputeWistow has a reputation beyond reputeWistow has a reputation beyond reputeWistow has a reputation beyond repute
Default

I just implemented this on one of my new projects Martyn, and I have to say i'm impressed at how easy it was, and also at how it keeps itself updated automatically

Are there any ways you can disallow urls/folders from being included in the sitemap? I've searched but can't seem to find any solutions apart from disallowing the files using robots.txt

Craig
Wistow is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 15-06-2005, 19:58   #4 (permalink)
Newbie
 
Join Date: Apr 2005
Posts: 10
iTrader: 0 / 0%
geriatrix is on a distinguished road
Default

Yes you can, in you config.xml place lines like this and use wildcards and reg expressions:-

Code:
 <filter  action="drop"  type="regexp"    pattern="/\.[^/]*$"    />
  <filter  action="drop"  type="wildcard"  pattern="*~"           />
  <filter  action="drop"  type="wildcard"  pattern="*secret*" />
geriatrix is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 15-06-2005, 20:00   #5 (permalink)
Moderator
 
Join Date: Mar 2005
Location: Barnsley, UK
Posts: 1,001
iTrader: 0 / 0%
Wistow has a reputation beyond reputeWistow has a reputation beyond reputeWistow has a reputation beyond reputeWistow has a reputation beyond reputeWistow has a reputation beyond reputeWistow has a reputation beyond repute
Default

Excellent, thanks alot!

Craig
Wistow is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
concept, powerful, 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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
phpBB Forum Sitemap rustypaulin Php and MySQL 5 24-10-2005 20:04


All times are GMT +1. The time now is 15:09.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
UK Webmaster Forum © WebmasterTalk.co.uk | Design by Forbairt

Ad Management by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41