ThaiSEOBoard.com

ความรู้ทั่วไป => Search Engine Optimization => ข้อความที่เริ่มโดย: Step9 ที่ 14 พฤศจิกายน 2006, 17:19:19



หัวข้อ: ระหว่างมี / ปิดท้ายเว็บกับไม่มีต่างกัน..
เริ่มหัวข้อโดย: Step9 ที่ 14 พฤศจิกายน 2006, 17:19:19
คือ มีเว็บSubmitอยู่2-3แห่ง ที่บังคับให้เราต้อง ปิดท้ายด้วย/น่ะครับ
เช่น http://www.thaiseoboard.com/ <--ต้องมี /

มันต่างกันยังไงรึครับ?
 :?


หัวข้อ: ระหว่างมี / ปิดท้ายเว็บกับไม่มีต่างกัน..
เริ่มหัวข้อโดย: danupol ที่ 14 พฤศจิกายน 2006, 17:25:35
ใช่ครับเคยเจอเหมือนกันครับ  แต่ไม่รู้เพราะอะไร ให้ปิดก็ปิดครับ  อิอิ :lol:  :lol:  :lol:


หัวข้อ: ระหว่างมี / ปิดท้ายเว็บกับไม่มีต่างกัน..
เริ่มหัวข้อโดย: Step9 ที่ 14 พฤศจิกายน 2006, 17:27:27
ก็ มีwwwกับ ไม่มียังต่างกัน(คุณtonyเฉลยไว้)เลยเอา / มาถามดูน่ะครับ


หัวข้อ: ระหว่างมี / ปิดท้ายเว็บกับไม่มีต่างกัน..
เริ่มหัวข้อโดย: ก็องโต้ ที่ 14 พฤศจิกายน 2006, 17:34:26
Answer:
When a document contains relative links, they are resolved by the browser, not by the HTTP server. The browser starts with the URL for the current document, removes everything after the last slash, and appends the relative URL. If the URL for the current document names a file, this works fine. But if the URL for the current document names a directory, and the URL is missing the trailing slash, then the method fails.

For example,

http://www.foo.com/bar/

names the directory bar on host www.foo.com, which might contain a file called (say) index.html, which the server returns as the document. If that document contains a relative link to blah.html, the browser will use the above method to derive the URL

http://www.foo.com/bar/blah.html

But if the browser had been using http://www.foo.com/bar as the base URL, the method would yield

http://www.foo.com/blah.html

which will fail because it's not what the author of the document meant.

More abstractly, every directory has two roles: It is a child of its parent directory, and it is a parent to its children. The path /bar refers to bar's role as a child, while the path /bar/ (which is equivalent to /bar/.) refers to bar's role as a parent. Both regular files and directories are children, but only directories are parents. Therefore, if you want at directory to be thought of as a directory rather than a regular file (which affects how relative paths are interpreted), you must refer to its role as a parent.


หัวข้อ: ระหว่างมี / ปิดท้ายเว็บกับไม่มีต่างกัน..
เริ่มหัวข้อโดย: win ที่ 14 พฤศจิกายน 2006, 17:51:25
อ่านเจอจากเว็บนี้ครับ http://www.markmyweb.com/
ใครสนใจไปลองอ่านดูนะครับ มีข้อมูลเรื่อง web design ที่เป็นประโยชน์ดี


ใช้เครื่องหมายสแล็ชปิดท้าย เมื่อลิงค์ไปยังโฟลเดอร์

เมื่อใดก็ตามที่คุณสร้างลิงค์ ไปยังเป้าหมายที่เป็นโฟลเดอร์ (ไม่ใช่หน้าเอกสาร หรือไฟล์ html) ควรจะปิดท้ายที่อยู่นั้น ด้วยเครื่องหมาย forward slash (/) ด้วยเสมอ เนื่องจาก ถ้าไม่มีเครื่องหมายสแล็ชนี้แล้ว จะทำให้เว็บเซิร์ฟเวอร์นั้น เกิดค่า hit เพิ่มขึ้นอีกหนึ่งครั้ง เป็นผลให้เซิร์ฟเวอร์ต้องทำงานมากขึ้น และยังทำให้ ข้อมูลสถิติผิดพลาดไป

ตัวอย่างที่พบได้บ่อยก็คือ การลิงค์ไปยังชื่อเว็บต่างๆ ที่นิยมสร้างลิงค์ ไปยังโฟลเดอร์ ที่มักจะเป็นที่อยู่ของไฟล์ index.htm แต่ได้ละเว้นชื่อไฟล์ไว้ เพื่อความสะดวก ในการพิมพ์และจดจำ โปรดสังเกต การใช้เครื่องหมายสแล็ช ที่ด้านหลังของลิงค์ ในตัวอย่างต่อไปนี้

http://www.markmyweb.com/

นอกจากนี้ เครื่องหมายสแล็ช ยังช่วยป้องกันปัญหา การมีช่องว่างที่ตอนท้าย ของที่อยู่ที่เราต้องการจะลิงค์ไปหา โดยที่คุณก็มองไม่เห็น ซึ่งอาจทำให้ ลิงค์นั้นผิดพลาดไป และหาไม่พบในที่สุด


ขอบคุณ markmyweb.com ณ ที่นี้ด้วยครับ


หัวข้อ: ระหว่างมี / ปิดท้ายเว็บกับไม่มีต่างกัน..
เริ่มหัวข้อโดย: wongsak ที่ 14 พฤศจิกายน 2006, 18:05:38
โอ้ว เพิ่งรู้นะเนี่ย ขอบคุณมากครับ :wink:


หัวข้อ: ระหว่างมี / ปิดท้ายเว็บกับไม่มีต่างกัน..
เริ่มหัวข้อโดย: HARRY ที่ 14 พฤศจิกายน 2006, 18:38:07
ขอบคุณครับ


หัวข้อ: ระหว่างมี / ปิดท้ายเว็บกับไม่มีต่างกัน..
เริ่มหัวข้อโดย: Step9 ที่ 14 พฤศจิกายน 2006, 19:04:11
:o ขอบคุณครับ


หัวข้อ: ระหว่างมี / ปิดท้ายเว็บกับไม่มีต่างกัน..
เริ่มหัวข้อโดย: mapandy ที่ 14 พฤศจิกายน 2006, 19:56:57
8) ความรู้เพิ่มอีกหนึ่ง

ขอบคุณคร้าบบบบบบบบบบบบบบ