httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Brooks">
Subject [users@httpd] Can I modify the page query string?
Date Tue, 12 Sep 2006 14:25:51 GMT
I've got a hosted Apache server without mod_rewrite and am editing an 
.htaccess file.
I want to do something like this:

RedirectMatch ^/muon1/banner_(.*)\.jpg$$1 that filenames such as /muon1/banner_me.jpg are served by the script 
/muon1/banner.php?user=me on (my server).

However, the above rule escapes the question mark into a %3f, interpreting 
the whole thing as the URL and the complaining a file with a question mark 
in its name is not found!  I played with:

SetEnv QUERY_STRING <something>

...and various conditional rules for a while, but haven't had much success. 
In fact, I don't even seem to be able to set the query string in a way that 
a PHP script will pick up.  Does Apache even allow this?  (Relatedly, does 
this require mod_rewrite?)
Any help or advice would be much appreciated.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message