fix domain to avoid redirect loop