RewriteRule ^/search.html$ /control/keywordsearch [QSA,L,PT] QSA - Query String Append (Append what ever query string to the rewrited url) L - Last Rule( defines this is the last rule. Ignore after this rewrite rule) PT - Pass Through
and proxy pass definitions should be like this. At the bottom of virtualhost definition. ProxyPass / ajp://localhost:8009/ ProxyPassReverse / ajp://localhost:8009/ I hope this will helps you. On Fri, Jun 4, 2010 at 7:37 AM, Raj Saini <[email protected]> wrote: > Hi Swetha, > > URL rewriting is very tricky and it may take lot of time to tweak them > using. What are the problems you are getting when you use the below > rewriting rules? > > Also, note that URL you see in browser address bar is same as you click on. > You cant change that unless you use JavaScript or some redirection. > > Thanks, > > Raj > > > On 03/06/10 15:52, swetha wrote: > >> Hi Raj, >> >> Greetings of the day. >> I am using apache for url rewrting. Here i am giving my >> requirement. Plz help me out. >> >> There is one search button, If we click on dat button the url must >> be www.pets.com/search.html >> for this i wrote code as follows: >> >> RewriteRule ^/search.html$ >> ajp://localhost:8080/ecart/control/keywordsearch [P,L] >> ProxyHTMLURLMap ^(.*)/ecart/control/keywordsearch;(.*)$ >> $1/search.html [R] >> ##---- without session id >> ProxyHTMLURLMap ^(.*)/ecart/control/keywordsearch$ $1/search.html >> [R] >> >> and when we write something in search box and send request like suppose >> if >> we write bag in search box and click on button the url must display as >> www.pets.com/search.html?keword=bag >> here keywords(ie bag) have to change according to our request >> >> Plz help me. this is very needful for me. >> >> >> >> >> > > -- Thanks, Kumaraswamy.N 91-9866805250.
