Eric Covener wrote:
On Feb 19, 2008 3:37 PM, Ruslan Sivak <rsivak@xxxxxxxxxxxxx> wrote:I have the following rewrite rule RewriteRule ^/u/(.+)/*$ /index.html?user=$1 [P,NC] for some reason this rule is not working for things like this /u/Testing test /u/#1 Test etc. What am I missing? I though .+ would match everything?RewriteLog? This isn't in .htaccess or <Directory>, is it? No leading slash there. Where does rewrite proxy to with that 'P' but no protocol/host/port on the substutition?
Logs: for somehostname.com/u/testing test127.0.0.1 - - [19/Feb/2008:17:25:33 --0500] [somehostname.com/sid#7680e0][rid#a82fa0/initial] (2) init rewrite engine with requested uri /u/testing test 127.0.0.1 - - [19/Feb/2008:17:25:33 --0500] [somehostname.com/sid#7680e0][rid#a82fa0/initial] (3) applying pattern '^/u/(.+)/*$' to uri '/u/testing test' 127.0.0.1 - - [19/Feb/2008:17:25:33 --0500] [somehostname.com/sid#7680e0][rid#a82fa0/initial] (2) rewrite '/u/testing test' -> '/index.html?user=testing test' 127.0.0.1 - - [19/Feb/2008:17:25:33 --0500] [somehostname.com/sid#7680e0][rid#a82fa0/initial] (3) split uri=/index.html?user=testing test -> uri=/index.cfm, args=user=testing test 127.0.0.1 - - [19/Feb/2008:17:25:33 --0500] [somehostname.com/sid#7680e0][rid#a82fa0/initial] (2) forcing proxy-throughput with http://somehostname.com/index.html 127.0.0.1 - - [19/Feb/2008:17:25:33 --0500] [somehostname.com/sid#7680e0][rid#a82fa0/initial] (1) go-ahead with proxy request proxy:http://somehostname.com/index.html [OK]
for somehostname.com/u/#1 test127.0.0.1 - - [19/Feb/2008:17:32:41 --0500] [somehostname.com/sid#7680e0][rid#aa10c8/initial] (2) init rewrite engine with requested uri /u/#1 test 127.0.0.1 - - [19/Feb/2008:17:32:41 --0500] [somehostname.com/sid#7680e0][rid#aa10c8/initial] (3) applying pattern '^/u/(.+)/*$' to uri '/u/#1 test' 127.0.0.1 - - [19/Feb/2008:17:32:41 --0500] [somehostname.com/sid#7680e0][rid#aa10c8/initial] (2) rewrite '/u/#1 test' -> '/index.html?user=#1 test' 127.0.0.1 - - [19/Feb/2008:17:32:41 --0500] [somehostname.com/sid#7680e0][rid#aa10c8/initial] (3) split uri=/index.html?user=#1 test -> uri=/main.cfm, args=user=#1 test 127.0.0.1 - - [19/Feb/2008:17:32:41 --0500] [somehostname.com/sid#7680e0][rid#aa10c8/initial] (2) forcing proxy-throughput with http://somehostname.com/index.html 127.0.0.1 - - [19/Feb/2008:17:32:41 --0500] [somehostname.com/sid#7680e0][rid#aa10c8/initial] (1) go-ahead with proxy request proxy:http://somehostname.com/index.html [OK]
This is not in .htaccess or <Directory>. It proxies to the same host... Russ --------------------------------------------------------------------- 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