Fix redirection loop for special case

Fix redirection loop if admin folder name is the same as ‘adminURL’