httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Pulsifer" <pulsif...@comcast.net>
Subject RE: [users@httpd] mod_rewrite and mod_jk help
Date Sat, 09 Jun 2007 10:36:20 GMT
> now i change your sample rewrite rule abit to
> RewriteRule ^/(.*?)/(.*)$ /user/$2?user=$1 [L]
> 
> When i tried to access http://www.example.com/me/home.jsp. i 
> got the following error in error_log
> 
> [error] [client 127.0.0.1] File does not exist: /var/www/html/me
> 
> Seems httpd ignore the rewrite rule and try to find the 'me' 
> in the root document directly.

That would probably mean the rule didn't match.  Try it like this:

RewriteRule ^(.*?)/(.*)$ /user/$2?user=$1 [L]


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


Mime
View raw message