Improve the structure of your URLs

改善你的URL架構

Creating descriptive categories and filenames for the documents on your website can not only help you keep your site better organized, but it could also lead to better crawling of your documents by search engines. Also, it can create easier, "friendlier" URLs for those that want to link to your content.

 

在你的網站為文件創造描述性目錄及檔名, 可以幫助你的網站更系統化, 這樣也可以讓搜尋引擎更容易爬你的網頁. 另外它可以創造更容易, 友善的URL給那些想要連結回你的網頁的人.

 

Visitors may be intimidated by extremely long and cryptic URLs that contain few recognizable words.

 

訪客會害怕很長且隱密的URL它包含很少可識別的字.

 

A URL to a page on our baseball card site that a user might have a hard time with  

 

A URL to a page on our baseball card site that a user might have a hard time with

在我們的棒球卡網站裏的一個網頁URL, 對使用者來說很不友善

 

URLs like these can be confusing and unfriendly. Users would have a hard time reciting the URL from memory or creating a link to it. Also, users may believe that a portion of the URL is unnecessary, especially if the URL shows many unrecognizable parameters. They might leave off a part, breaking the link.

 

像這種URL讓人困惑且不友善. 使用者將很困難地記憶URL或者建立與它的連結. 另外, 使用者將相信部分的URL是不需要的, 特別是這URL顯示無法識別的參數時. 他們可能不會去記它且中斷連結.

 

Some users might link to your page using the URL of that page as the anchor text. If your URL contains relevant words, this provides users and search engines with more information about the page than an ID or oddly named parameter would.

 

一些使用者可能使用URL錨點文字連結到你的網頁. 跟只使用ID或奇怪的名字參數比起來, 如果你的URL包含切題的文字, 將提供使用者跟搜尋引擎更多有關於此頁面的資訊.

 

The highlighted words above could inform a user or search engine what the target page is 

 

The highlighted words above could inform a user or search engine what the target page is about before following the link

在你連結到頁面之前, 上面反白的文字可以告知使用者或搜尋引擎, 目標頁面是什麼

 

Lastly, remember that the URL to a document is displayed as part of a search result in Google, below the document's title and snippet. Like the title and snippet, words in the URL on the search result appear in bold if they appear in the user's query.

 

最後, 提醒你網頁的URL會被顯示在Google搜尋結果頁在文件的標題及摘要下方. 就像標題跟摘要一樣, 如果使用者的查詢關鍵字出現在搜尋結果內的URL中的字將會被標示為粗體字

 

 A user performs the query [baseball cards]

 A user performs the query [baseball cards]

使用者查詢 [baseball cards] .

 

Our homepage appears as a result, with the URL listed under the title and snippet 

 Our homepage appears as a result, with the URL listed under the title and snippet

我們的首頁出現在結果頁, URL出現在標題跟摘要之下

 

Below is another example showing a URL on our domain for a page containing an article about the rarest baseball cards. The words in the URL might appeal to a search user more than an ID number like "www.brandonsbaseballcards.com/article/102125/" would.

 

下面是另一個例子, 顯示在我們的網域中的一個頁面URL關於稀有的棒球卡. 在這情形下文字URL可能比ID數字如"www.brandonsbaseballcards.com/article/102125/"更適合搜尋者

 

A user performs the query [rarest baseball cards] 

 

A user performs the query [rarest baseball cards]

使用者查詢 [rarest baseball cards]

 

A deeper page, with a URL that reflects the type of content found on it, appears as a result 

 

A deeper page, with a URL that reflects the type of content found on it, appears as a result

一個深層網頁, 出現在搜尋結果頁URL反映出查詢的關鍵字

 

Google is good at crawling all types of URL structures, even if they're quite complex, but spending the time to make your URLs as simple as possible for both users and search engines can help.

 

Google很善於爬所有類型的URL架構, 即使他們十分複雜, 但花些時間使你的URL更簡單可幫助使用者及搜尋引擎.

 

Some webmasters try to achieve this by rewriting their dynamic URLs to static ones; while Google is fine with this, we'd like to note that this is an advanced procedure and if done incorrectly, could cause crawling issues with your site. To learn even more about good URL structure, we recommend this Webmaster Help Center page on creating Google-friendly URLs.

 

一些網站管理者試著改寫他們的動態URL成為靜態的來實作此原則; 認為這對Google是好的, 在此說明, 這是一種進階的程序但並不正確, 它將會造成機器人在你的網站爬網頁的問題. 去學習使用好的URL架構, 我們建議你去Webmaster Help Center創造Google友善的URLs”這個頁面.

 

Good practices for URL structure

URL架構最佳實作

   Use words in URLs - URLs with words that are relevant to your site's content and structure are friendlier for visitors navigating your site. Visitors remember them better and might be more willing to link to them.

URL中使用文字 – URL中使用跟文章及架構相關的文字對訪客在逛你的網站時是友善的. 訪客更容易記住它且更願意連結它.

 

Avoid:

   using lengthy URLs with unnecessary parameters and session IDs

避免使用過長的URL, 其中包含非必要的參數跟session ID

   choosing generic page names like "page1.html"

避免選擇一般的頁面名稱, 好比”page1.html”

   using excessive keywords like "baseball-cards-baseball-cards-baseball-

cards.htm"

避免過度使用關鍵字, 好比” baseball-cards-baseball-cards-baseball-

cards.htm”

 

   Create a simple directory structure - Use a directory structure that organizes your content well and is easy for visitors to know where they're at on your site. Try using your directory structure to indicate the type of content found at that URL.

創造一個簡單的目錄架構 使用一種目錄架構, 它能夠組織你的內容頁, 且對訪客來說他很輕易了解他正在你的網站的那裏. 試著使用你的目錄架構在URL上來表達出你的內容.

 

Avoid:

   having deep nesting of subdirectories like ".../dir1/dir2/dir3/dir4/dir5/dir6/

page.html"

避免過於深層的子目錄架構像” .../dir1/dir2/dir3/dir4/dir5/dir6/

page.html”

   using directory names that have no relation to the content in them

避免使用跟內容不相關的目錄名稱

 

   Provide one version of a URL to reach a document - To prevent users from linking to one version of a URL and others linking to a different version (this could split the reputation of that content between the URLs), focus on using and referring to one URL in the structure and internal linking of your pages.

 

提供單一URL版本來連到頁面 防止使用者經由URL連結到一個頁面而另一個URL也連結到此頁面(這會分散此頁面的分數), 在架構及內部頁面連結都聚焦在使用且參照同一個URL.

 

If you do find that people are accessing the same content through multiple URLs, setting up a 301 redirect from non-preferred URLs to the dominant URL is a good solution for this.

 

如果你發現人們正在存取同樣的網頁經由不同的URL, 在不喜歡的URL上設定301重導到喜歡的URL.

 

Avoid:

   having pages from subdomains and the root directory (e.g. "domain.com/page.htm" and "sub.domain.com/page.htm") access the same content

避免從子網域跟根目錄(例如”domain.com/page.htm””sub.domain.com/page.htm”)存取相同的頁面

   mixing www. and non-www. versions of URLs in your internal linking structure

在你內部的連結架構避免混合www.non-www.URL版本

   using odd capitalization of URLs (many users expect lower-case URLs and remember them better)

避免使用奇怪的大寫URL(很多使用者期望小寫URL且更容易記)

 

創作者介紹
創作者 chainchung 的頭像
chainchung

平凡人的平凡事

chainchung 發表在 痞客邦 留言(0) 人氣()