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

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

 



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@xxxxxxxxxxxxxx]
Sent: Wednesday, May 13, 2009 1:59 PM
To: users@xxxxxxxxxxxxxxxx
Subject: RE:  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@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