Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trailing slash? #65

Open
JaeYeopHan opened this issue Nov 19, 2019 · 0 comments
Open

Trailing slash? #65

JaeYeopHan opened this issue Nov 19, 2019 · 0 comments
Labels
related: web Related everything of web type: material For sources

Comments

@JaeYeopHan
Copy link
Owner

trailing slash를 붙여지는 것처럼 보이는 케이스는 두 경우이다.

  • 브라우저에서 붙이는 경우.
  • Nginx에서 붙이는 경우.

브라우저에서 붙이는 경우

url hostname 다음 path에 아무것도 없을 때 /를 붙여주게 된다.
path가 없을 수 없기 때문이다.

Nginx에서 붙이는 경우

nginx에서 request를 받고 이 부분을 302 Permanant redirect 했을 때, 브라우저에서 trailing slash 로 응답을 받아 붙여지는 것처럼 보이는 경우다.

URL 끝에 '/' 는 왜 붙이는 걸까?

@JaeYeopHan JaeYeopHan added type: material For sources related: web Related everything of web labels Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
related: web Related everything of web type: material For sources
Projects
None yet
Development

No branches or pull requests

1 participant