Redirecting to locations containing a parent or current directory reference

I was having some problems with redirects on a site that redirected to locations using parent and current directory references.  This pull request contains a small change to handle those types of locations.

Neil.