作者herbacin (herbacin)
看板Web_Design
標題[問題] 各大網站網站結構的分析
時間Sat Mar 11 11:48:47 2017
傳統的網站如露天拍賣
當我進入Macbook pro類別
他的URL :
http://class.ruten.com.tw/category/sub00.php?c=0011000200060002&o=11
而該類別的產品文章URL為 :
http://goods.ruten.com.tw/item/show?21621759791909
他是透過queryString的方式來傳遞參數
但最近看了幾個網站如ptt web和 伊利論壇發現他們並沒有帶queryString,
而是產生不同的html檔案代表不同的文章, 如下
ptt web
Macshop版的文章 :
https://www.ptt.cc/bbs/MacShop/index7592.html
https://www.ptt.cc/bbs/MacShop/index7593.html
https://www.ptt.cc/bbs/MacShop/index7594.html
eyny
電影區 :
http://www07.eyny.com/forum-205-1.html
電影區的文章 :
http://www07.eyny.com/thread-11200524-1-3DN3CFFH.html
http://www07.eyny.com/thread-11274460-1-3DN3CFFH.html
想請問這些檔案是動態生成的嗎? 是當使用者發表文章的時候才動態產生的嗎?
這樣的方式跟queryString相比有什麼好處呢? 效能會比較好嗎
謝謝 ~
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.34.181.227
※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1489204131.A.97A.html
推 Ayukawayen: 多半是URL Rewrite 03/11 11:55
→ MangoTW: URL / 後面可自訂行為,藉由 rewrite 或後端程式 routing 03/11 12:22
→ herbacin: 所以意思是他不是動態產生的網頁 03/11 15:08
→ herbacin: 像ptt 我發表一篇文章 就會產生xxx.html URL 03/11 15:16
→ MangoTW: 123.html 可以是真的存在於硬碟的獨立網頁檔,也可以是後 03/11 23:25
→ MangoTW: 端 routing 即時解析 URL 去抓 ID=123 資料 render 出來 03/11 23:25
推 pm2001: 我想你對動態有點誤解 網址長甚麼樣子跟是否為動態產生 03/12 03:50
→ pm2001: 兩個並沒有確定的關係 03/12 03:50
→ pm2001: http server怎麼實作這一塊 使用者是不會知道的 03/12 03:51