Rewrite Rule question

Rewrite Rule question

am 15.09.2009 23:42:16 von Jayamurugan

--0016361644a5f749a30473a4a7c8
Content-Type: text/plain; charset=ISO-8859-1

We have folloeing rewrite rules in our apache configuration files.

RewriteRule ^/AuthenticateService/Agent/Authenticate
/AgentAuthenticationService/AgentAuthenticationSoapBindingIm plBean [PT]
RewriteRule ^/AuthenticateService/Agent/Authorize
/AgentAuthenticationService/AgencyAuthorizationSoapBindingIm plBean [PT]
RewriteRule ^/AuthenticateService/Agent/AuthenticateAndAuthorize
/AgentAuthenticationService/AgentAuthenticationAndAuthorizat ionSoapBindingImplBean
[PT]

In the above rewrite rule, first two works fine. We are having problem with
the last rule. It redirects to
/AgentAuthenticationService/AgentAuthenticationSoapBindingIm plBean instead
of
/AgentAuthenticationService/AgentAuthenticationAndAuthorizat ionSoapBindingImplBean.
Is there any restriction in number of characters in rewrite rule? Could some
one help us to resove this issue?

--0016361644a5f749a30473a4a7c8
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

We have folloeing rewrite rules in our apache configuration files. v>
=A0

RewriteRule ^/AuthenticateService/Agent/Authenticate /AgentAuthenticat=
ionService/AgentAuthenticationSoapBindingImplBean [PT]
RewriteRule ^/Aut=
henticateService/Agent/Authorize /AgentAuthenticationService/AgencyAuthoriz=
ationSoapBindingImplBean [PT]

RewriteRule ^/AuthenticateService/Agent/AuthenticateAndAuthorize /AgentAuth=
enticationService/AgentAuthenticationAndAuthorizationSoapBin dingImplBean [P=
T]

=A0

In the above rewrite rule, first two works fine. We are having problem=
with the last rule. It redirects to /AgentAuthenticationService/AgentAuthe=
nticationSoapBindingImplBean=A0instead of /AgentAuthenticationService/Agent=
AuthenticationAndAuthorizationSoapBindingImplBean. Is there any restriction=
in number of characters in rewrite rule? Could some one help us to resove =
this issue?


--0016361644a5f749a30473a4a7c8--

Re: Rewrite Rule question

am 16.09.2009 00:16:36 von Bob Ionescu

2009/9/15 Jai :
> We have folloeing rewrite rules in our apache configuration files.
>
> RewriteRule ^/AuthenticateService/Agent/Authenticate
> /AgentAuthenticationService/AgentAuthenticationSoapBindingIm plBean [PT]
> RewriteRule ^/AuthenticateService/Agent/Authorize
> /AgentAuthenticationService/AgencyAuthorizationSoapBindingIm plBean [PT]
> RewriteRule ^/AuthenticateService/Agent/AuthenticateAndAuthorize
> /AgentAuthenticationService/AgentAuthenticationAndAuthorizat ionSoapBindingImplBean
> [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$ /....

Bob

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Rewrite Rule question

am 16.09.2009 00:44:41 von aw

Jai wrote:
....

It redirects to
> /AgentAuthenticationService/AgentAuthenticationSoapBindingIm plBean instead
> of
> /AgentAuthenticationService/AgentAuthenticationAndAuthorizat ionSoapBindingImplBean.
> Is there any restriction in number of characters in rewrite rule?

I don't know, but looking at the above, if there aren't any yet, I vote
to introduce some.
:-)


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org