httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Ionescu <>
Subject Re: [users@httpd] Rewrite Rule question
Date Tue, 15 Sep 2009 22:16:36 GMT
2009/9/15 Jai <>:
> We have folloeing rewrite rules in our apache configuration files.
> RewriteRule ^/AuthenticateService/Agent/Authenticate
> /AgentAuthenticationService/AgentAuthenticationSoapBindingImplBean [PT]
> RewriteRule ^/AuthenticateService/Agent/Authorize
> /AgentAuthenticationService/AgencyAuthorizationSoapBindingImplBean [PT]
> RewriteRule ^/AuthenticateService/Agent/AuthenticateAndAuthorize
> /AgentAuthenticationService/AgentAuthenticationAndAuthorizationSoapBindingImplBean
> [PT]

Problem: The pattern of the first rule matches requests which are
intended for the third rule.
Solution: Reverse the order (special patterns followed by more general
patterns) or change the regular expression to "not to match anything
followed by ....Authenticate", i.e., by marking "end of string" with a
$ sign:

RewriteRule ^/AuthenticateService/Agent/Authenticate$ /....


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message