user1247412
user1247412

Reputation: 647

Error running a php project in firefox and Chrome

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

Answers (1)

웃웃웃웃웃
웃웃웃웃웃

Reputation: 11984

This will be enough to redirect into xyz.php..

header('Location: xyx.php');

Upvotes: 1

Related Questions