Hi!
I'm trying to use mod_rewrite to limit servlet access.
I'd would like to redirect all query string attempts to a disconnect option.
--->
Finally the Servlet request will by processed by the application server, so [PT] is required.
Below you can see my code
RewriteLog /tmp/rewrite.log
RewriteLogLevel 3
RewriteCond %{QUERY_STRING} request=[a-zA-Z]+
RewriteRule /test/Servlet?request=[a-zA-Z]+ /test/Servlet?request=disconnect [PT]
But does't work properly. Can I make a filter based on query string?
Thanks in Advance
I'm trying to use mod_rewrite to limit servlet access.
I'd would like to redirect all query string attempts to a disconnect option.
--->
Finally the Servlet request will by processed by the application server, so [PT] is required.
Below you can see my code
RewriteLog /tmp/rewrite.log
RewriteLogLevel 3
RewriteCond %{QUERY_STRING} request=[a-zA-Z]+
RewriteRule /test/Servlet?request=[a-zA-Z]+ /test/Servlet?request=disconnect [PT]
But does't work properly. Can I make a filter based on query string?
Thanks in Advance