XML Sitemaps Generator

Author Topic: Excluding urls  (Read 11188 times)

kubo

  • Registered Customer
  • Approved member
  • *
  • Posts: 1
Excluding urls
« on: October 13, 2009, 01:34:45 PM »
Hi

I have one question
How can I exclude more urls ?

my site has hierarchy like this:

[external links are visible to admins only][section]
[external links are visible to admins only][number of page]/[section]

I wanna exclude all urls which starts with [number of page], I wanna leave there just home page of each section

How to do it ? Does regexp work ?

thanks

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10621
Re: Excluding urls
« Reply #1 on: October 14, 2009, 12:13:12 AM »
Hello,

yes, you can try this:
Code: [Select]
.*\d/.+
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

lenk

  • Registered Customer
  • Approved member
  • *
  • Posts: 8
Re: Excluding urls
« Reply #2 on: January 19, 2010, 05:21:51 PM »
I also have a question.
I have urls like  /183/bla-bla-bla/2.html
How to exclude this one but does not exlude something like /aa183/bla-bla-bla/2.html or /111183/bla-bla-bla/2.html
The problem that the first slash is not recognized and i still see the urls in the sitemap for this regexp:
/183/.*/2.html.

Probably something like
^183/.*/2.html

Is this correct one?

Thank you.



« Last Edit: January 19, 2010, 05:23:41 PM by lenk »

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10621
Re: Excluding urls
« Reply #3 on: January 19, 2010, 08:35:42 PM »
Hello,

yes, the second one should work.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

lenk

  • Registered Customer
  • Approved member
  • *
  • Posts: 8
Re: Excluding urls
« Reply #4 on: January 21, 2010, 12:51:16 PM »
Works like a charm! We reduced the sitemap by ~10 times!
I think, you should describe in documentation somewhere that regexp are supported.

Oleg, thank you very much for this excelent program!

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2