Refining an exclusion / inclusion pattern

Post Reply
mpressnall
Posts: 16
Joined: Thu Apr 29, 2004 7:02 pm

Refining an exclusion / inclusion pattern

Post by mpressnall »

I got some great help at the bottom of this post:
http://thunderstone.master.com/texis/ma ... 41460a6310

Basically, I want to exclude anything that lives in the /html/ directory with the exception that if it lives in /html/photogalleries/ (or under that dir, too) it will get indexed.

And I finally got a great working REX that appeared to do that, that REX being:
>>/html/=!photogalleries=
So this REX gets content from /html/photogalleries and all the goodness underneath this directory. YAH!


However, after doing some closer inspections, I have noticed that it is allowing in URLs at the same level of photogalleries.

So /html/photogalleries is the level and these get by:
/html/movies/
/html/food/
/html/restaurants/
/html/health/
(etc, etc, etc)
but nothing under those dirs gets by which is good but these dirs shouldn't be included.

What needs to be tweaked about that REX to make it exclude these second level dirs that shouldn't be included?

Thanks,
Matt
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Refining an exclusion / inclusion pattern

Post by mark »

If you have "Stay under" on it should work the way you want without any exclusion rex.
Post Reply