Forum Moderators: phranque

Message Too Old, No Replies

Location with regexp

         

MoBarger

1:57 pm on Aug 22, 2006 (gmt 0)

10+ Year Member



I need to set up a Location stanza to match the following:
/dir1/dir2/dirx/file?wsdl

I have tried a variety of ways to catch this but can't seem to find the magic regexp. Can anyone give any suggestions to try?

coopster

6:02 pm on Aug 22, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, MoBarger.

What exactly are you trying to match? A single character?

MoBarger

6:13 pm on Aug 22, 2006 (gmt 0)

10+ Year Member



thanks.
The URI could contain 1-x directories. I am trying to match on?wsdl at the end of the URI.

jdMorgan

7:16 pm on Aug 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I doubt that will be possible. A URL is a location, but a query string is a piece of data. Therefore, the <Location> directive will ignore it.

depending on what you want to put in the <Location> container, there may be other ways to go about it.

Jim