added automatic redirect on wrong url