Fix bug with redirect loop

If current sub domain is the default