Inclusion / Exclusion
« on: January 20, 2020, 06:22:01 AM »
One part of my website is a phpBB.  I have added an extension which generates a dynamic sitemap of just the BB topics.
In robot.txt I have two sitemap.xml files listed: one in the /BB/ directory and one in the root.

The BB is reachable from the site main menu.  I would like to include the link to the BB in the main sitemap generated by the Sitemap generator, BUT exclude the rest of the directory links

How can I ONLY get a sitemap entry for domain.com/BB/index.php and exclude all the rest of domain.com/BB/  ??

With all the <index><nofollow> option seem there should be a way.

Thanks for help with all my newbie questions
Say what you will about Sisyphus. He always has work.
Re: Inclusion / Exclusion
« Reply #1 on: January 20, 2020, 02:43:13 PM »
Please try to add this in Exclude URLs setting:
Code: [ External links are visible to forum administrators only ]
BB/[^i].*
Re: Inclusion / Exclusion
« Reply #2 on: January 20, 2020, 04:39:06 PM »
Thanks.  Of course I did not think of a regular expression.  Works fine.
Say what you will about Sisyphus. He always has work.