Easy Free Games 分享 13,000 頁靜態遊戲網站的做法與 robots.txt 踩雷經驗
A 13,000-page static games site with no framework, and the robots.txt rule that hid our CSS from Google
重點導讀
遊戲網站頁面很多,不代表每一頁都適合讓 Google 收錄;一條 robots.txt 規則也可能讓網站樣式消失。
- Easy Free Games 用一支 Python 程式產生約 13,000 個 HTML 頁面,再由 Cloudflare Pages 提供瀏覽。
- 網站只讓有合適內容的遊戲頁面進入搜尋結果,避免只有翻譯外殼的頁面被收錄。
- 作者也發現,封鎖網址問號的規則擋住了帶有版本引數的 CSS 和 JavaScript,後來加上允許讀取資產資料夾的規則修正。
- 這篇分享靜態網站的收錄管理、測試與排錯經驗。
AI 伴隨問答
針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:
信源出處dev.to
A 13,000-page static games site with no framework, and the robots.txt rule that hid our CSS from Google
本文為 888news 精選之重點導讀。若需閱讀作者完整原文、技術細節與官方討論,請前往原始網站。
來源: Dev.to Top Tech (dev.to)
開啟原文