Why would you need a slash at the end of a URL?

前端 未结 5 1073
名媛妹妹
名媛妹妹 2020-12-31 19:38

Is there a difference between these URLs in regards to having slashes at the end of the URL?

https://drchrono.com/about_us
https://drchrono.com/about_us/
         


        
5条回答
  •  [愿得一人]
    2020-12-31 20:01

    In Django URLs without forward slashes automatically have a forward slash appended to them. This is a preference of the Django developers and not a hard-coded rule of the web (I think it's actually a setting in Django).

提交回复
热议问题