'This web page has a redirect loop' on localhost
Posted: 20. September 2015 11:53
Hi,
I installed xampp-win32-5.6.12-0-VC11-installer. I started Apache and MySQL from the XAMPP control panel.
When I open the browser and typed 'localhost', it went to the localhost/dashboard page. So in the C:\xampp\htdocs\index.php file I made the following change:
//header('Location: '.$uri.'/dashboard/');
header('Location: '.$uri);
Now when I type localhost in the url, I get 'This web page has a redirect loop' ERR_TOO_MANY_REDIRECTS.
Details:
The web page at http://localhost/ has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
I deleted the cookies but I keep getting the same error.
What is the solution?
Thanks.
I installed xampp-win32-5.6.12-0-VC11-installer. I started Apache and MySQL from the XAMPP control panel.
When I open the browser and typed 'localhost', it went to the localhost/dashboard page. So in the C:\xampp\htdocs\index.php file I made the following change:
//header('Location: '.$uri.'/dashboard/');
header('Location: '.$uri);
Now when I type localhost in the url, I get 'This web page has a redirect loop' ERR_TOO_MANY_REDIRECTS.
Details:
The web page at http://localhost/ has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
I deleted the cookies but I keep getting the same error.
What is the solution?
Thanks.