Re-directing to the correct php script