gpt4 book ai didi

url - 在 URL 中的斜杠之后直接使用查询参数是否正确?

转载 作者:行者123 更新时间:2023-12-04 04:11:33 28 4
gpt4 key购买 nike

我收到来自 的 304 重定向 :

  • http://example.com/path?value1=a&value2=b
  • http://example.com/path/?value1=a&value2=b

  • 正确的形式还是服务器有问题?

    最佳答案

    表示目录的 URL 通常以斜杠结尾,但 URL 本身与文件系统无关,因此 both ways are correct .

    尾部斜杠几乎肯定是由 Apache's mod_dir 完成的.该文档包含一些要点,为什么这是一个好的做法。虽然:

    If you don't want this effect and the reasons above don't apply to you, you can turn off the redirect ...

    关于url - 在 URL 中的斜杠之后直接使用查询参数是否正确?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18575298/

    28 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com