差異處
這裏顯示兩個版本的差異處。
下次修改 | 前次修改 | ||
java:web:restapi:url_rules [2022/06/12 15:18] tony 建立 |
java:web:restapi:url_rules [2023/06/25 09:48] (目前版本) |
||
---|---|---|---|
行 8: | 行 8: | ||
* [[https://www.v9digital.com/insights/matter-urls-uppercase-lowercase/|Is UPPERCASE or lowercase Better for URLS?]] | * [[https://www.v9digital.com/insights/matter-urls-uppercase-lowercase/|Is UPPERCASE or lowercase Better for URLS?]] | ||
* [[https://www.searchenginejournal.com/url-capitalization-seo/343369/#close|URL Capitalization & SEO: Does It Really Matter?]] | * [[https://www.searchenginejournal.com/url-capitalization-seo/343369/#close|URL Capitalization & SEO: Does It Really Matter?]] | ||
- | 如果在現有的軟體中,已經有支援大寫的內容,可以透過回應301讓client redirect到正確的頁面中即可。 | + | 如果在現有的軟體中,已經有支援大寫的內容,可以透過回應301讓client redirect到正確的頁面中即可。另需要注意的是,query parameter也算是在URL的一環中,所以也有大小寫的區分,URL中只有protocol(schema)與host是case-insensitive,但標準化為lowercase。 |
==== Rule: Hyphens (-) should be used to improve the readability of URIs ==== | ==== Rule: Hyphens (-) should be used to improve the readability of URIs ==== | ||
==== Rule: Underscores (_) should not be used in URIs ==== | ==== Rule: Underscores (_) should not be used in URIs ==== |