1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Google Sitemap Generator Filter Strangeness

Discussion in 'Google Sitemaps' started by dj1471, Nov 19, 2005.

  1. #1
    Hi all,
    SEMrush
    I'm using the official Google Sitemap Generator to generate a sitemap by walking the filesystem (using a <directory> option in the config file).
    I need a few filter rules to exclude a few files from being added to the sitemap. If I try this:

    
    <filter  action="drop"  type="wildcard"  pattern="file.php"  />
    
    Code (xml):
    or
    
    <filter  action="drop"  type="wildcard"  pattern="file*"  />
    
    Code (xml):
    or similar patterns it just doesn't do it. For some reason I have to do:
    
    <filter  action="drop"  type="wildcard"  pattern="*file.php"  />
    
    Code (xml):
    or
    
    <filter  action="drop"  type="wildcard"  pattern="*file*"  />
    
    Code (xml):
    Without the leading '*' it just doesn't take affect, which seems rather strange. Is anyone else seeing this behaviour or is there something strange going on?
    I can see nothing in the docs to suggest that this behaviour is intentional...

    Thanks in advance,
    David.
     
    dj1471, Nov 19, 2005 IP
    SEMrush