I have an application in which nearly all requests are routed through
a "handler page" which then renders the requested page.   For example,
a request for http://www.mydomain.com/bin/resumes/myresume.doc would
be routed through http://www.mydomain.com/landingpage.php.

I have a RewriteRule that handles this request by forwarding the
requested URI in the query string (because I couldn't get it to work
without the query string approach).  The RewriteRule looks like this:

RewriteRule ^/(.*) /landingpage.php?requesturi=%{REQUEST_URI}   [QSA,PT]

This works fine except when I have a document (these documents are
uploaded by users so I have little control over them) called "My
Resume & Cover Letter.doc", for example.  The "&", having special
meaning in the query string, destroys the redirection capability.

Is there any way around this?

Any thoughts or suggestions would be greatly appreciated.

Thanks.

--

Rob Wilkerson

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to