httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24155] - URLs containing a ? are assumed to be query strings
Date Tue, 28 Oct 2003 17:49:00 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24155>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24155

URLs containing a ? are assumed to be query strings





------- Additional Comments From willy@debian.org  2003-10-28 17:48 -------
Submitter got back to me with some more information:

My working config (using phaethon.ch/static/ for testing purposes):

AddEncoding gzip .gz
RewriteEngine On
RewriteLog "/tmp/rewrite.log"
RewriteLogLevel 3
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteRule ^/static/(.+).html$ /static/$1.html.gz [L,nosplit]

gives:

[phaethon.ch/sid#817517c][rid#818e454/initial] (2) init rewrite engine with
requested uri /static/page.php?id=3.html
[phaethon.ch/sid#817517c][rid#818e454/initial] (3) applying pattern
'^/static/(.+).html$' to uri '/static/page.php?id=3.html'
[phaethon.ch/sid#817517c][rid#818e454/initial] (2) rewrite
/static/page.php?id=3.html -> /static/page.php?id=3.html.gz
[phaethon.ch/sid#817517c][rid#818e454/initial] (2) local path result:
/static/page.php?id=3.html.gz
[phaethon.ch/sid#817517c][rid#818e454/initial] (2) prefixed with document_root
to /home/project/web-site/phaethon/web-files/static/page.php?id=3.html.gz
[phaethon.ch/sid#817517c][rid#818e454/initial] (1) go-ahead with
/home/project/web-site/phaethon/web-files/static/page.php?id=3.html.gz [OK]


your suggested config:
RewriteRule ^/static/(.+).html$ /static/$1.html.gz [L,NE]

gives (the nonworking result):

[phaethon.ch/sid#81aae9c][rid#8187ec4/initial] (2) init rewrite engine with
requested uri /static/page.php?id=4.html
[phaethon.ch/sid#81aae9c][rid#8187ec4/initial] (3) applying pattern
'^/static/(.+).html$' to uri '/static/page.php?id=4.html'
[phaethon.ch/sid#81aae9c][rid#8187ec4/initial] (2) rewrite
/static/page.php?id=4.html -> /static/page.php?id=4.html.gz
[phaethon.ch/sid#81aae9c][rid#8187ec4/initial] (3) split
uri=/static/page.php?id=4.html.gz -> uri=/static/page.php, args=id=4.html.gz
[phaethon.ch/sid#81aae9c][rid#8187ec4/initial] (2) local path result:
/static/page.php
[phaethon.ch/sid#81aae9c][rid#8187ec4/initial] (2) prefixed with document_root
to /home/project/web-site/phaethon/web-files/static/page.php
[phaethon.ch/sid#81aae9c][rid#8187ec4/initial] (1) go-ahead with
/home/project/web-site/phaethon/web-files/static/page.php [OK]


or did you mean (which works neither):
RewriteRule ^/static/(.+)\?(.+).html$ /static/$1\%3F$2.html.gz [L,NE]

gives:

[phaethon.ch/sid#81ff69c][rid#816dd24/initial] (2) init rewrite engine with
requested uri /static/page.php?id=8.html
[phaethon.ch/sid#81ff69c][rid#816dd24/initial] (3) applying pattern
'^/static/(.+)\?(.+).html$' to uri '/static/page.php?id=8.html'
[phaethon.ch/sid#81ff69c][rid#816dd24/initial] (2) rewrite
/static/page.php?id=8.html -> /static/page.php%3Fid=8.html.gz
[phaethon.ch/sid#81ff69c][rid#816dd24/initial] (2) local path result:
/static/page.php%3Fid=8.html.gz
[phaethon.ch/sid#81ff69c][rid#816dd24/initial] (2) prefixed with document_root
to /home/project/web-site/phaethon/web-files/static/page.php%3Fid=8.html.gz
[phaethon.ch/sid#81ff69c][rid#816dd24/initial] (1) go-ahead with
/home/project/web-site/phaethon/web-files/static/page.php%3Fid=8.html.gz [OK]

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message