0
header ("Location :   .")

this one stay at current web page or current directory?

header("Location :  ..")

this one goes to default home page?

2
  • Can you please describe your problem? Commented Mar 22, 2015 at 4:58
  • I not sure what it means . versus .. in header function. Commented Mar 22, 2015 at 5:01

1 Answer 1

1

Technically, neither are correct. You are required to use a full URL in any Location response headers.

Most browsers will allow for relative paths, but you're bound to find something that doesn't support this behavior. For relative paths, .. means the directory above the current one. . means the current directory.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.