RE: modrewrite help needed....plz :(

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

 



Hi

> I expected that "http://10.10.21.170/SEARCH/index.jsp";  would be replaced with "http://10.10.21.170/SEARCH/index.jsp?area1=sq";

Is this correct format to attain as expected

RewriteRule ^SEARCH\index.jsp$ SEARCH/index.jsp?area1=sq [NC,L]


Or still am i doing something wrong...:(

Attched logs



10.10.21.170 - - [13/May/2009:18:59:32 +051800] [10.10.21.170/sid#463148][rid#9a41c8/initial] (2) init rewrite engine with requested uri /index.html
10.10.21.170 - - [13/May/2009:18:59:32 +051800] [10.10.21.170/sid#463148][rid#9a41c8/initial] (3) applying pattern '^SEARCH\index.jsp$' to uri '/index.html'
10.10.21.170 - - [13/May/2009:18:59:32 +051800] [10.10.21.170/sid#463148][rid#9a41c8/initial] (1) pass through /index.html
10.10.21.170 - - [13/May/2009:18:59:32 +051800] [10.10.21.170/sid#463148][rid#9a41c8/initial] (2) init rewrite engine with requested uri /favicon.ico
10.10.21.170 - - [13/May/2009:18:59:32 +051800] [10.10.21.170/sid#463148][rid#9a41c8/initial] (3) applying pattern '^SEARCH\index.jsp$' to uri '/favicon.ico'
10.10.21.170 - - [13/May/2009:18:59:32 +051800] [10.10.21.170/sid#463148][rid#9a41c8/initial] (1) pass through /favicon.ico
10.10.21.170 - - [13/May/2009:19:00:03 +051800] [10.10.21.170/sid#463148][rid#9bc208/initial] (2) init rewrite engine with requested uri /favicon.ico
10.10.21.170 - - [13/May/2009:19:00:03 +051800] [10.10.21.170/sid#463148][rid#9bc208/initial] (3) applying pattern '^SEARCH\index.jsp$' to uri '/favicon.ico'
10.10.21.170 - - [13/May/2009:19:00:03 +051800] [10.10.21.170/sid#463148][rid#9bc208/initial] (1) pass through /favicon.ico
10.10.21.170 - - [13/May/2009:19:00:04 +051800] [10.10.21.170/sid#463148][rid#9c0218/initial] (2) init rewrite engine with requested uri /index.html
10.10.21.170 - - [13/May/2009:19:00:04 +051800] [10.10.21.170/sid#463148][rid#9c0218/initial] (3) applying pattern '^SEARCH\index.jsp$' to uri '/index.html'
10.10.21.170 - - [13/May/2009:19:00:04 +051800] [10.10.21.170/sid#463148][rid#9c0218/initial] (1) pass through /index.html
10.10.21.170 - - [13/May/2009:19:00:06 +051800] [10.10.21.170/sid#463148][rid#9c0218/initial] (2) init rewrite engine with requested uri /SEARCH/index.jsp
10.10.21.170 - - [13/May/2009:19:00:06 +051800] [10.10.21.170/sid#463148][rid#9c0218/initial] (3) applying pattern '^SEARCH\index.jsp$' to uri '/SEARCH/index.jsp'
10.10.21.170 - - [13/May/2009:19:00:06 +051800] [10.10.21.170/sid#463148][rid#9c0218/initial] (1) pass through /SEARCH/index.jsp
10.10.21.170 - - [13/May/2009:19:00:21 +051800] [10.10.21.170/sid#463148][rid#9b21f0/initial] (2) init rewrite engine with requested uri /SEARCH/index.jsp
10.10.21.170 - - [13/May/2009:19:00:21 +051800] [10.10.21.170/sid#463148][rid#9b21f0/initial] (3) applying pattern '^SEARCH\index.jsp$' to uri '/SEARCH/index.jsp'
10.10.21.170 - - [13/May/2009:19:00:21 +051800] [10.10.21.170/sid#463148][rid#9b21f0/initial] (1) pass through /SEARCH/index.jsp
10.10.21.170 - - [13/May/2009:19:00:25 +051800] [10.10.21.170/sid#463148][rid#9a41c8/initial] (2) init rewrite engine with requested uri /SEARCH
10.10.21.170 - - [13/May/2009:19:00:25 +051800] [10.10.21.170/sid#463148][rid#9a41c8/initial] (3) applying pattern '^SEARCH\index.jsp$' to uri '/SEARCH'
10.10.21.170 - - [13/May/2009:19:00:25 +051800] [10.10.21.170/sid#463148][rid#9a41c8/initial] (1) pass through /SEARCH
10.10.21.170 - - [13/May/2009:19:00:30 +051800] [10.10.21.170/sid#463148][rid#9c4228/initial] (2) init rewrite engine with requested uri /SEARCH/
10.10.21.170 - - [13/May/2009:19:00:30 +051800] [10.10.21.170/sid#463148][rid#9c4228/initial] (3) applying pattern '^SEARCH\index.jsp$' to uri '/SEARCH/'
10.10.21.170 - - [13/May/2009:19:00:30 +051800] [10.10.21.170/sid#463148][rid#9c4228/initial] (1) pass through /SEARCH/




With regards
Karthik

-----Original Message-----
From: Eric Covener [mailto:covener@xxxxxxxxx]
Sent: Wednesday, May 13, 2009 4:24 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  modrewrite help needed....plz :(

On Wed, May 13, 2009 at 4:42 AM, Karthik Nanjangude
<karthik.nanjangude@xxxxxxxxxxxxx> wrote:
> Hi
>
> With the Rewrite as defined in httpd.conf
>
>
> RewriteRule ^SEARCH\index.jsp$ /SEARCH/index.jsp?area1=sq [NC,L]
>
>
> I expected that "http://10.10.21.170/SEARCH/index.jsp";  would be replaced with "http://10.10.21.170/SEARCH/index.jsp?area1=sq";

In httpd.conf, outside of <Directory>, the thing your comparing
against in a RewriteRule begins with a slash.  Your rule isn't
matching due to the anchor.


--
Eric Covener
covener@xxxxxxxxx

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



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