RE: mod_rewrite and mod_jk help

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

 



> 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@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