[users@httpd] mod_rewrite %{REQUEST_URI} Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux