Re: http://domain.com/{username} Short URLs or catchall (Facebook-style)

Splash Forums PrettyFaces Users http://domain.com/{username} Short URLs or catchall (Facebook-style) Re: http://domain.com/{username} Short URLs or catchall (Facebook-style)

#21961

I think this is an issue that Rewrite could solve. Perhaps it has solved it already. I don’t know. :)

Essentially the problem is that that mappings/rules with path parameters overlap. Like in this example:

http://twitter.com/signup      <-- Simple mapping without path parameters
http://twitter.com/login <-- Simple mapping without path parameters
http://twitter.com/chkal <-- Mapping with path parameter: /#{username}

The problem here is that whether “chkal” is a valid user name can only be checked at a very late point in time (validation phase).

Does something like this work in Rewrite?