Reputation: 647
I have created a php project. I am using XAMPP. When I run login page, after successful login it should redirect me to a webpage called
http://localhost/xyx.php
However in firefox it redirects me to
http://localhost/localhost/xyx.php
However the same thing works fine in safari.On successful validation, I redirect user using following line of code:
header('Location: http://localhost/xyx.php');
Can anyone tell me what might be the issue?
Upvotes: 0
Views: 49
Reputation: 11984
This will be enough to redirect into xyz.php..
header('Location: xyx.php');
Upvotes: 1