跳至主要內容

    SEO 基礎(開發人員版)

    這篇把「最常用、最有效、最容易出錯」的 SEO 基礎設定一次講清楚:Meta、OG、Canonical、robots 與 sitemap。

    1) 必備 Meta:title / description / canonical

    Title 與 Description 是搜尋結果的門面;Canonical 則決定「哪個 URL 是主版本」。先把這三個做好,才能談後續進階。

    html
    <title>Free SEO Tools - SEO Academy</title>
    <meta name="description" content="Free SEO tools and developer-focused tutorials for SEO/AEO." />
    <link rel="canonical" href="https://seo.lucas-futures.com/" />

    小提醒:不要在全站硬塞同一組 title/description;每頁都要跟該頁主題一致。

    2) 社群分享:Open Graph / Twitter Cards

    OG/Twitter 不直接影響排名,但會影響分享預覽與點擊。尤其工具頁很容易被分享,建議每個工具都有專屬 OG。

    html
    <meta property="og:type" content="website" />
    <meta property="og:title" content="Meta Tags Generator" />
    <meta property="og:description" content="Generate SEO meta tags in seconds." />
    <meta property="og:image" content="https://seo.lucas-futures.com/og-image.png" />

    3) robots 與 sitemap:一個管爬取,一個管發現

    robots.txt 告訴爬蟲能不能抓;sitemap 告訴搜尋引擎有哪些 URL 值得抓。兩者搭配,可以有效降低爬蟲浪費。

    • robots.txt:不要擋到 CSS/JS(會影響渲染與索引判斷)
    • sitemap:只放你希望被索引的 canonical URL(不要放 noindex)
    • 送出到 Search Console:觀察覆蓋率與索引狀態

    相關工具

    常見問題

    關於 Meta、canonical、robots 與 sitemap 的常見問答。