Changed redirects to php scripts.