Jim Mann Taylor wrote:

I tried your alias FILEALIAS /default.aspx?page*.aspx* /page$2.aspx
(I do want to keep the Genus and Code info)

but it didn't do anything to those like the following (in the Analog Report):


Right. $1 is used to replace with the first wildcard (*) match. $2 with the second, etc. So what you had above will give links like:

   /page?Code=1045.aspx

Which is not, I think, what you want. Perhaps you meant this:

   FILEALIAS /default.aspx?page*.aspx* /page$1.aspx$2

Or, with case insensitive regular expressions (off the top of my head):

   FILEALIAS REGEXPI:/default\.aspx\?page([^.]*)\.aspx /page$1.aspx

(You don't need the $2 argument here, because regular expression only replace the matched component, not the entire content.)


/default.aspx?Page.Aspx?Page=25
/default.aspx?Page50.Aspx?Page=50
/default.aspx?Page.Aspx?Page=133
/default.aspx?Page57.Aspx?Code=677

I looked for these in the actual log file and they have the web
address (generalised here) attached in front of the above as for example:
http://www.domain.com/default.aspx?Page.Aspx?Page=25


Is this referrer or request data? Usually requests are only logged with the full path, not the URL. Referrers are logged with the URL.

You probably have a part of each line in your logfile that looks like "GET /default.aspx?Page50.aspx HTTP/1.1". This is the request details. If you can find lines like that, that's what we are working with here.

If you actually have referrers like the one above, then you have something wrong with your web site -- there should never be more than one '?' in a URL -- any subsequent ones should be escaped.

--
Jeremy Wadsack
Seven Simple Machines

+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Analog Documentation: http://analog.cx/docs/Readme.html
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------

Reply via email to