Posted By CS on 01/17/2011 08:27 AM
1. User requests http://myapp.domain.com/admin/ . It works, he gets let's say "index.html" file (thanks to your tip with HTTP::uri /[string range [HTTP::uri] 6 end]
)
2. User clicks on a link pointing to "/directory/foobar.html"
3. It doesn't work because in the index.html page the user is getting, the link is "/directory/foobar.html". And it should be "/admin/directory/foobar.html" to have it redirected properly I think.
I think I have to rewrite server's response.
It sounds like index.html is using relative links then, no? If the user gets a 404 for /directory/foobar.html, why are we trying to remove the /admin from the request?