Brevity is the soul of wit [A free, easy, custom URL shortening solution for ASP.NET!]

This blog has moved to a new location and comments have been disabled.

All old posts, new posts, and comments can be found on The blog of

See you there!

Comments (4)
  1. Jason says:

    just a thought…but instead of writing to the screen a list of valid known alias, you could redirect the user to a custom 404 page or the website homepage. that way the general user won't see your complete list of alias if an invalid one is typed in.

  2. David Anson says:


    If I were worried about secrecy here, I would probably do something very much like what you suggest. But in this case, I'm not – all the aliases there are public, so I don't mind if people see other ones. What's more, that should make it easy to correct typos – and maybe they'll even stumble across something else of interest! 🙂

  3. Jason says:

    good point. is there a way so you don't have the "/r/  directory/prefix", but rather have it something like "". i thought that maybe changing " ~/r/ " to just " ~/ " would work, but it didn't seem to.

  4. David Anson says:


    I'd expect that you could remove the entire first "if" in HttpApplication_BeginRequest and change the code for "alias" to not strip of the prefix. Maybe try those changes and step through the code in a debugger a couple of times – any additional tweaks should be pretty obvious and straightforward.

    Good luck!

Comments are closed.

Skip to main content