Chris Kennedy said:
I am passing a querystring e.g.
http://office.cybase.co.uk/placeadvert/addimages.asp?maximage=3&officeid=118
#subimages
I want to use a named anchor. but this confuses my asp as it thinks officeid
is 118#subimages not 118
A Google on "querystring named anchor" found:
http://www.webmasterworld.com/forum21/8405.htm
Which includes the following:
Section 4 in RFC 2396 (
http://www.ietf.org/rfc/rfc2396.txt) clearly states:
"The term "URI-reference" is used here to denote the common usage of a
resource identifier. A URI reference may be absolute or relative,
and may have additional information attached in the form of a
fragment identifier. However, "the URI" that results from such a
reference includes only the absolute URI after the fragment
identifier (if any) is removed and after any relative URI is resolved
to its absolute form."
In other words, according to the RCF the URL is split by the fragment
identifier first (#), if present, and *then* parsed as an address.
It's therefore imperative that the fragment identifier is placed last in the
URL, which may also be combined with a query string as in: