httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karthik Nanjangude <karthik.nanjang...@xius-bcgi.com>
Subject RE: [users@httpd] modrewrite help needed....plz :(
Date Wed, 13 May 2009 08:42:10 GMT
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"


If any thing wrong plz correct me



With regards
Karthik

-----Original Message-----
From: Tom Evans [mailto:tevans.uk@googlemail.com]
Sent: Wednesday, May 13, 2009 1:59 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] modrewrite help needed....plz :(

On Wed, 2009-05-13 at 11:52 +0530, Karthik Nanjangude wrote:
> 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
>
..
> init rewrite engine with requested uri /SEARCH/index.jsp
> applying pattern '^SEARCH\index.jsp$' to uri '/SEARCH/index.jsp'
> pass through /SEARCH/index.jsp
>

Did you even look at the log? Here is a hint: for a rewrite to work, the
pattern has to match the uri.

It might be easier if you explain what you are trying to do. It looks
like you are trying to add default arguments to this SEARCH page?

Tom


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



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