Hi,
I have defined a context /login, with some settings and rewrite rules inside. When I try to access the page at
http://mysite.com/login
the URL is checked in the rewrite rules at the VHOST level, but not the context level. A redirection is then sent to
http://mysite.com/login/
and the rewrite rules are checked again, but now, since there is no trailing slash (and I defined my context as /login not /login/, the context is ignored again).
These are the rewrite entries in my log
This doesn't seem right to me. I've looked for a setting to disable automatically adding directory slashes, but it seems to me that the context /login has been ignored when it shouldn't have.
Is this the correct behaviour, or is it a bug?
I've just downloaded the latest 4.0b3, and the above behaviour is what I experienced.
I have defined a context /login, with some settings and rewrite rules inside. When I try to access the page at
http://mysite.com/login
the URL is checked in the rewrite rules at the VHOST level, but not the context level. A redirection is then sent to
http://mysite.com/login/
and the rewrite rules are checked again, but now, since there is no trailing slash (and I defined my context as /login not /login/, the context is ignored again).
These are the rewrite entries in my log
Code:
2009-01-09 05:41:47.279 [INFO] [127.0.0.1:53733-0#simpl-ssl] [REWRITE] Rule: Match '/login' with pattern '^/admin(.*)$', result: -1
2009-01-09 05:41:47.284 [INFO] [127.0.0.1:53733-1#simpl-ssl] [REWRITE] Rule: Match '/login/' with pattern '^/admin(.*)$', result: -1
2009-01-09 05:41:47.284 [INFO] [127.0.0.1:53733-1#simpl-ssl] [REWRITE] strip base: '/login/' from URI: '/login/'
Is this the correct behaviour, or is it a bug?
I've just downloaded the latest 4.0b3, and the above behaviour is what I experienced.