Changed previous directory fix to a redirect, which will work a lot better.