Fixed issue in searching - was sending people to 404 pages when in subdirectories