Need help with RewriteRule

View: New views
3 Messages — Rating Filter:   Alert me  

Need help with RewriteRule

by robert.badaracco :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Given the following: RewriteRule ^(.*)$  /ProxyServlet?$1

http://www.example.com/companyinfo redirects to
http://www.example.com/ProxyServlet?/companyinfo as expected.

But this redirect using the same RewriteRule yields:
http://www.example.com/SomeServlet/?src=xxxxx&target=yyyy redirects to
http://www.example.com/ProxyServlet?/SomeServlet/

As you can see, we don't get the remaining portion of the URL:
?src=xxxxx&target=yyyy

Can anyone offer any suggestions on how to adjust the rule to fix this?

Thanks
Bob


If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation.  
---------------------------------------------------------------------
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@...
   "   from the digest: users-digest-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Need help with RewriteRule

by Eric Covener :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jul 7, 2008 at 5:51 PM,  <robert.badaracco@...> wrote:
>
> Given the following: RewriteRule ^(.*)$  /ProxyServlet?$1

> http://www.example.com/SomeServlet/?src=xxxxx&target=yyyy redirects to
> http://www.example.com/ProxyServlet?/SomeServlet/
>
> As you can see, we don't get the remaining portion of the URL:
> ?src=xxxxx&target=yyyy
>
> Can anyone offer any suggestions on how to adjust the rule to fix this?

See the [QSA] flag.


--
Eric Covener
covener@...

---------------------------------------------------------------------
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@...
   "   from the digest: users-digest-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Need help with RewriteRule

by robert.badaracco :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you Eric. That did the trick.

Bob




                                                                           
             "Eric Covener"                                                
             <covener@...                                            
             m>                                                         To
                                       users@...              
             07/07/2008 06:07                                           cc
             PM                                                            
                                                                   Subject
                                       Re: [users@httpd] Need help with    
             Please respond to         RewriteRule                        
             users@...                                            
                   e.org                                                  
                                                                           
                                                                           
                                                                           
                                                                           




On Mon, Jul 7, 2008 at 5:51 PM,  <robert.badaracco@...> wrote:
>
> Given the following: RewriteRule ^(.*)$  /ProxyServlet?$1

> http://www.example.com/SomeServlet/?src=xxxxx&target=yyyy redirects to
> http://www.example.com/ProxyServlet?/SomeServlet/
>
> As you can see, we don't get the remaining portion of the URL:
> ?src=xxxxx&target=yyyy
>
> Can anyone offer any suggestions on how to adjust the rule to fix this?

See the [QSA] flag.


--
Eric Covener
covener@...

---------------------------------------------------------------------
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@...
   "   from the digest: users-digest-unsubscribe@...
For additional commands, e-mail: users-help@...




If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation.  
---------------------------------------------------------------------
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@...
   "   from the digest: users-digest-unsubscribe@...
For additional commands, e-mail: users-help@...

LightInTheBox - Buy quality products at wholesale price!