Django Book 翻译
菜单>:
TOC
返回
原文:
Both of these options are meant to normalize URLs. The philosophy is that each URL should exist in one and only one place. Technically the URL ``example.com/bar`` is distinct from ``example.com/bar/`` , which in turn is distinct from ``www.example.com/bar/`` . A search-engine indexer would treat these as separate URLs, which is detrimental to your sites search-engine rankings, so its a best practice to normalize URLs.
翻译:
这两个选项都是为了规范化URL。其后的哲学是每个URL都应且只应当存在于一处。技术上来说,URL ``example.com/bar`` 与 ``example.com/bar/`` 及 ``www.example.com/bar/`` 都互不相同。搜索引擎编目程序将把它们视为不同的URL,这将不利于该站点的搜索引擎排名,因此这里的最佳实践是将URL规范化。
备注:
译者: