make localhost working without redirect