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:cove...@gmail.com] Sent: Wednesday, May 13, 2009 4:24 PM To: users@httpd.apache.org Subject: Re: [us...@httpd] modrewrite help needed....plz :( On Wed, May 13, 2009 at 4:42 AM, Karthik Nanjangude <karthik.nanjang...@xius-bcgi.com> 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 cove...@gmail.com --------------------------------------------------------------------- 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-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org --------------------------------------------------------------------- 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-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org