durusmail: quixote-users: Question about construction of urls
Question about construction of urls
2004-07-28
2004-07-28
2004-07-29
Question about construction of urls
Shahms King
2004-07-28
On Wed, 2004-07-28 at 18:54 -0400, Zatz, Steve wrote:
> I am pretty new to Quixote and Apache but have the demo running under scgi.
> My question is the following:
>
> My Apache config file has the following LocationMatch directive for the scgi
> server:
>
> 
>
> .....
>
> Whether I type in http://localhost/qdemo or http://localhost/qdemo/ I get to
> the first page of the demo.  However, if I click on any of the links when at
> http://localhost/qdemo (for example the simple link), I go to
> http://localhost/simple, which is not a good thing.
>
> I fear this is obvious but can someone enlighten me as to what I need to do
> either in the LocationMatch directive or in the construction of the href so
> that I can go from qdemo (without a following /) to a location like
> qdemo/simple.

Since all of the URLs in the demo application are relative (I think) the
short answer is that you can't.  Your web browser takes the relative URL
"simple" and constructs a new absolute URL using
"http://localhost/qdemo" as the base URL.  Since the URL doesn't end is
a slash the "qdemo" part is replaced by "simple".  In short, there's
nothing you can do without redirecting access to "/qdemo" to "/qdemo/".
For a more detailed analysis of how your browser is (supposed) to
interpret relative URLS you can look here:

http://www.freesoft.org/CIE/RFC/1808/18.htm


--
Shahms E. King 
Multnomah ESD

Public Key:
http://shahms.mesd.k12.or.us/~sking/shahms.asc
Fingerprint:
1612 054B CE92 8770 F1EA  AB1B FEAB 3636 45B2 D75B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBBCDm2/qs2NkWy11sRAjR6AJ47GxtZaAWlRd8EkcCUwHqi2+NGHQCgghjW
NV6Ftw273QBdOhG16YcRBXA=
=P7am
-----END PGP SIGNATURE-----
reply