php - Mikrtotik - Internal login page causing Infinte loops -
i trying use mikrotik hotspot following scenario. when user connected hotspot, login.html page redirect external page index.php check exist user csv. if user exist redirect redirect.html . if user not exist redirect register.html & register.php store user info in csv file. whole upper scenario working fine. the main problem when redirect.html called, browser loops between external server address , internal server address repeatedly , rapidly. here login.html code <html> <head> <title>bmc hotspot</title> <meta http-equiv="pragma" content="no-cache"> <script type="text/javascript" src="/hotspot/jquery.min.js"></script> <script type="text/javascript"> var js_var = '$(mac)'; $(document).ready(function () { window.location = "http://192.168.88.247/index.php?mac=" + js_var; })...