Skip to main content.
home | support | download

Back to List Archive

Re: Index only htm

From: John Angel <angel_john(at)not-real.hotmail.com>
Date: Sun Dec 07 2003 - 10:43:46 GMT
> > Hi, how to index only directories (/) and html extensions?
>
> What are (/) directoires?

http://site/something/


> > I am not familiar with regexp, should be something like this in
test_url:
> >
> > return 0 if $uri->path =
/\.(html|htm|shtml|asp|php|txt|phtml|cfm|jsp)$/;
>
> return 0 if $uri->path =~ /\.(html|htm|shtml|asp|php|txt|phtml|cfm|jsp)$/;
>                        ^^
>
> That says to return false if the path part of the URL ends in those file
> extensions -- meaning NOT to index those documents.

Ok, than it should be:

return 0 if $uri->path = /\.(html|htm|shtml|asp|php|txt|phtml|cfm|jsp)$/;


>
> > but I am not sure if it works. How to index directories (/) also?
> >
> > Will that work for queries?
>
> What do you mean queries?

http://site/something/index.php?a=b&b=c
Received on Sun Dec 7 10:43:49 2003