Hi This is what I did to http.conf I now wanted to use *.jsp instead of *.html RewriteEngine on RewriteLog "C:/APACHE/logs/rewrite.log" RewriteLogLevel 9 RewriteRule ^SEARCH\index.jsp$ /SEARCH/index.jsp?area1=sq [NC,L] I have cleared the cache, restarted the APACHE server On the URL when I type "http://10.10.21.170/SEARCH/index.jsp" I do not see the changes... to "http://10.10.21.170/SEARCH/index.jsp?area1=sq" For reference the log is as shown below Rewrite.log 10.10.21.170 - - [13/May/2009:11:49:18 +051800] [10.10.21.170/sid#463148][rid#9a41c8/initial] (2) init rewrite engine with requested uri /SEARCH/index.jsp 10.10.21.170 - - [13/May/2009:11:49:18 +051800] [10.10.21.170/sid#463148][rid#9a41c8/initial] (3) applying pattern '^SEARCH\index.jsp$' to uri '/SEARCH/index.jsp' 10.10.21.170 - - [13/May/2009:11:49:18 +051800] [10.10.21.170/sid#463148][rid#9a41c8/initial] (1) pass through /SEARCH/index.jsp 10.10.21.170 - - [13/May/2009:11:49:20 +051800] [10.10.21.170/sid#463148][rid#9b2200/initial] (2) init rewrite engine with requested uri /SEARCH/index.jsp 10.10.21.170 - - [13/May/2009:11:49:20 +051800] [10.10.21.170/sid#463148][rid#9b2200/initial] (3) applying pattern '^SEARCH\index.jsp$' to uri '/SEARCH/index.jsp' 10.10.21.170 - - [13/May/2009:11:49:20 +051800] [10.10.21.170/sid#463148][rid#9b2200/initial] (1) pass through /SEARCH/index.jsp 10.10.21.170 - - [13/May/2009:11:49:21 +051800] [10.10.21.170/sid#463148][rid#9ae1f0/initial] (2) init rewrite engine with requested uri /SEARCH/index.jsp 10.10.21.170 - - [13/May/2009:11:49:21 +051800] [10.10.21.170/sid#463148][rid#9ae1f0/initial] (3) applying pattern '^SEARCH\index.jsp$' to uri '/SEARCH/index.jsp' 10.10.21.170 - - [13/May/2009:11:49:21 +051800] [10.10.21.170/sid#463148][rid#9ae1f0/initial] (1) pass through /SEARCH/index.jsp 10.10.21.170 - - [13/May/2009:11:49:21 +051800] [10.10.21.170/sid#463148][rid#9b01f8/initial] (2) init rewrite engine with requested uri /SEARCH/index.jsp 10.10.21.170 - - [13/May/2009:11:49:21 +051800] [10.10.21.170/sid#463148][rid#9b01f8/initial] (3) applying pattern '^SEARCH\index.jsp$' to uri '/SEARCH/index.jsp' 10.10.21.170 - - [13/May/2009:11:49:21 +051800] [10.10.21.170/sid#463148][rid#9b01f8/initial] (1) pass through /SEARCH/index.jsp 10.10.21.170 - - [13/May/2009:11:49:29 +051800] [10.10.21.170/sid#463148][rid#9ac1e0/initial] (2) init rewrite engine with requested uri /SEARCH/index.jsp 10.10.21.170 - - [13/May/2009:11:49:29 +051800] [10.10.21.170/sid#463148][rid#9ac1e0/initial] (3) applying pattern '^SEARCH\index.jsp$' to uri '/SEARCH/index.jsp' 10.10.21.170 - - [13/May/2009:11:49:29 +051800] [10.10.21.170/sid#463148][rid#9ac1e0/initial] (1) pass through /SEARCH/index.jsp 10.10.21.170 - - [13/May/2009:11:49:31 +051800] [10.10.21.170/sid#463148][rid#9b8218/initial] (2) init rewrite engine with requested uri /SEARCH/index.jsp 10.10.21.170 - - [13/May/2009:11:49:31 +051800] [10.10.21.170/sid#463148][rid#9b8218/initial] (3) applying pattern '^SEARCH\index.jsp$' to uri '/SEARCH/index.jsp' 10.10.21.170 - - [13/May/2009:11:49:31 +051800] [10.10.21.170/sid#463148][rid#9b8218/initial] (1) pass through /SEARCH/index.jsp With regards Karthik -----Original Message----- From: Igor Cicimov [mailto:icicimov@xxxxxxxxx] Sent: Wednesday, May 13, 2009 10:55 AM To: users@xxxxxxxxxxxxxxxx Subject: Re: modrewrite help needed....plz :( You need to make the rule case insensitive if you want to use capitol letters. Try something like this RewriteRule ^SEARCH\.html$ /SEARCH/index.html?area1=sq [NC,L] The NC flag is important here making the rule case insensitive. Igor On 5/13/09, Karthik Nanjangude <karthik.nanjangude@xxxxxxxxxxxxx> wrote: > Hi > > > OS / WINDOWS 2000 > MODJK: mod_jk-1.2.28-httpd-2.2.3.so > APACHE: APACHE_2.2.11-win32-x86-no_ssl.msi > APPSERVER : JBOSS 4.2.1 > JAVA: JDK5.0.8 > USED TYPE : INTRANET > > > > I have done the following changes in "httpd.conf" > > > LoadModule jk_module C:/Apache/modules/mod_jk.so > LoadModule rewrite_module C:/Apache/modules/mod_rewrite.so > <IfModule mod_jk.c> > JkWorkersFile conf/workers1.properties > JkLogFile logs/mod_jk.log > JkLogLevel error > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " > JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories > JkRequestLogFormat "%w %V %T" > > <Directory /SEARCH/* > > AllowOverride all > </Directory> > > > RewriteEngine on > RewriteLog "C:/APACHE/logs/rewrite.log" > RewriteLogLevel 9 > RewriteRule ^SEARCH\.html$ /SEARCH/index.html?area1=sq > > </IfModule> > > > I need the modrewrite to rewrite as "index.html?area1=sq" when some > body types " http://<IP>/SEARCH > > Have I done any thing wrong in modrewrite in http.conf ?..... > > With regards > karthik > > > > > > --------------------------------------------------------------------- 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