Fixed the redirection issue without virtualhost setup