>>>>เอาวิธีทำ URL เป็นภาษาไทยสำหรับ SEO ของ SMF 2.0 ขึ้นไป มาฝากครับ<<<<

เริ่มโดย medusakbpom, 09 กันยายน 2012, 18:26:16

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

medusakbpom

mod rewrite friendly url ภาษาไทยสำหรับ SEO ของ SMF 2.0 ขึ้นไปครับ ผมลองทำแล้ว ได้ผมแจ่มมากครับ
ทำให้ url เป็นภาษาไทยแล้วมี.html ตามหลังด้วยครับ
ลองทำเมื่อกี้นี่เอง ทำได้แล้วเลยเอามาแบ่งให้คนที่ยังทำไม่ได้ไปลองทำดูครับ

1. Login เข้าสู่ระบบ ไปที่เมนูผู้ดูแล จากนั้นเลือก
ส่วนปรับแต่งค่าการใช้งาน > คลิ๊กที่แสดง URLs โดยปราศจาก ?'s Apache เท่านั้น!
Login as Admin > Edit Features and Options >  Show URL's without ?'s

Search engine friendly URLs
Apache/Lighttpd only!

2. แก้ไขไฟล์ ./Source/MessageIndex.php

ค้นหา
'time' => timeformat($row['first_poster_time']),
'timestamp' => forum_time(true, $row['first_poster_time']),
'subject' => $row['first_subject'],
'preview' => $row['first_body'],
'icon' => $row['first_icon'],
'icon_url' => $settings[$context['icon_sources'][$row['first_icon']]] . '/post/' . $row['first_icon'] . '.gif',
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['first_subject'] . '</a>'


เอาไปทับของเดิม

'time' => timeformat($row['first_poster_time']),
'timestamp' => forum_time(true, $row['first_poster_time']),
'subject' => $row['first_subject'],
'preview' => $row['first_body'],
'icon' => $row['first_icon'],
'icon_url' => $settings[$context['icon_sources'][$row['first_icon']]] . '/post/' . $row['first_icon'] . '.gif',
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
$keyword= preg_replace("~[\s]+~","-",$row['first_subject']),
$keyword = urlencode(preg_replace('~[^a-z0-9ก-๙\.\-\_]~iu','',$keyword)),
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0/' . str_replace(" ","-",$row['first_subject']) . '" target="_blank">' . $row['first_subject'] . '</a>'
/*'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0[color=red][b]/' . urlencode(preg_replace('~[^a-z0-9ก-๙\.\-\_]~iu','',$keyword)) . '[/b][/color]">' . $row['first_subject'] . '</a>'*/
/*'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0/' . urlencode($keyword) . '" target="_blank">' . $row['first_subject'] . '</a>'*/


3. Save as
แล้วอัพไฟล์ขึ้นโฮสไปทับของเดิมครับ

ขอบคุณ jigload.com

***ผมไม่ต้องการอะไรมากมาย ขอแค่ คำขอบคุณ และ +1 ก็พอครับ ^^  :wanwan017:





Gameslag

ติดBanner UIP10000-15000 ต่อวัน Pageviwe 80000-100000ต่อวัน สนใจPM

mymo


hs4twy

รับติดตั้ง CMS เปิดร้าน และอืิ่นๆ


MR.chk

[direct=https://www.chkwebs.com/seo-monthly/]รับทำ SEO รายเดือน[/direct]
[direct=http://www.thaiseoboard.com/index.php/topic,248735.0.html]SEO คืออะไร มาทำความรู้จักมันให้มากขึ้นกันดีกว่า[/direct]


kisschy



flash

[direct=http://www.mclshop.com/]ครีมหมอจุฬา[/direct] ผ่าน อย. อยากหน้าใส ไร้รอยด่างดำ ครีมหมอจุฬาซื้อที่ไหน หาไม่ยากเลย แต่ระวังของปลอมนะ ของเราเป็น ครีมหมอจุฬาของแท้ 100% มาดูสินค้าก่อนได้


SEOHostThailand

ลงประกาศฟรี โคราช
[direct=http://www.udon-property.com]‎ขายบ้านอุดรธานี [/direct][direct=http://www.xn--22c0bakhec0en2h4biumj6b7s.net] ขายที่ดินอุดรธานี [/direct][direct=http://www.koratproperty.net] ขายที่ดินโคราช [/direct][direct=http://www.xn--12cgs3c9a6a3glv7kqc.net]‎ ที่พักโคราช [/direct][direct=http://www.xn--42cm1blb5ce3a1gme7n2a2e9d.com] รับทำเว็บโคราช [/direct]

ริคาร์โด้กาก้า

[direct=https://bit.ly/3d6wzrE]เข้ากลุ่ม Google Ads & Analytics ที่ดีที่สุดในประเทศไทย กดเข้ากลุ่ม คลิก [/direct]

[direct=https://bit.ly/GA4-KonvertivePro]เรียน Google Ads - Analytics - Google Tag Manager สอบถาม คลิกเลย [/direct]
[direct=https://bit.ly/GA4-KonvertivePro]เรียนจนสอบ Certificate Google ได้ [/direct]


medusakbpom

อ้างถึงจาก: ริคาร์โด้กาก้า ใน 10 กันยายน 2012, 02:08:25
หา ./Source/MessageIndex.php  ไม่เจอ  :wanwan009:



เข้าไปที่floder forum ของ smf ก่อนครับ แล้วหาfloder  Source ครับ MessageIndex.php  จะอยู่ในนั้น

paiboonkik

อ้างถึงจาก: medusakbpom ใน 09 กันยายน 2012, 18:26:16
mod rewrite friendly url ภาษาไทยสำหรับ SEO ของ SMF 2.0 ขึ้นไปครับ ผมลองทำแล้ว ได้ผมแจ่มมากครับ
ทำให้ url เป็นภาษาไทยแล้วมี.html ตามหลังด้วยครับ
ลองทำเมื่อกี้นี่เอง ทำได้แล้วเลยเอามาแบ่งให้คนที่ยังทำไม่ได้ไปลองทำดูครับ

1. Login เข้าสู่ระบบ ไปที่เมนูผู้ดูแล จากนั้นเลือก
ส่วนปรับแต่งค่าการใช้งาน > คลิ๊กที่แสดง URLs โดยปราศจาก ?'s Apache เท่านั้น!
Login as Admin > Edit Features and Options >  Show URL's without ?'s

Search engine friendly URLs
Apache/Lighttpd only!

2. แก้ไขไฟล์ ./Source/MessageIndex.php

ค้นหา
'time' => timeformat($row['first_poster_time']),
'timestamp' => forum_time(true, $row['first_poster_time']),
'subject' => $row['first_subject'],
'preview' => $row['first_body'],
'icon' => $row['first_icon'],
'icon_url' => $settings[$context['icon_sources'][$row['first_icon']]] . '/post/' . $row['first_icon'] . '.gif',
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['first_subject'] . '</a>'


เอาไปทับของเดิม

'time' => timeformat($row['first_poster_time']),
'timestamp' => forum_time(true, $row['first_poster_time']),
'subject' => $row['first_subject'],
'preview' => $row['first_body'],
'icon' => $row['first_icon'],
'icon_url' => $settings[$context['icon_sources'][$row['first_icon']]] . '/post/' . $row['first_icon'] . '.gif',
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
$keyword= preg_replace("~[\s]+~","-",$row['first_subject']),
$keyword = urlencode(preg_replace('~[^a-z0-9ก-๙\.\-\_]~iu','',$keyword)),
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0/' . str_replace(" ","-",$row['first_subject']) . '" target="_blank">' . $row['first_subject'] . '</a>'
/*'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0[color=red][b]/' . urlencode(preg_replace('~[^a-z0-9ก-๙\.\-\_]~iu','',$keyword)) . '[/b][/color]">' . $row['first_subject'] . '</a>'*/
/*'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0/' . urlencode($keyword) . '" target="_blank">' . $row['first_subject'] . '</a>'*/


3. Save as
แล้วอัพไฟล์ขึ้นโฮสไปทับของเดิมครับ

ขอบคุณ jigload.com

***ผมไม่ต้องการอะไรมากมาย ขอแค่ คำขอบคุณ และ +1 ก็พอครับ ^^  :wanwan017:





ใช้ smf 2.0.2 ผมทำตามแล้วมันไม่ขึ้นเลยครับ ตกหล่นตรงไหนหรือเปล่าครับ ขอคำแนะนำ ทำใน localhost

                                       'time' => timeformat($row['first_poster_time']),
              'timestamp' => forum_time(true, $row['first_poster_time']),
              'subject' => $row['first_subject'],
              'preview' => $row['first_body'],
              'icon' => $row['first_icon'],
              'icon_url' => $settings[$context['icon_sources'][$row['first_icon']]] . '/post/' . $row['first_icon'] . '.gif',
              'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
               $keyword= preg_replace("~[\s]+~","-",$row['firstSubject']),
               $keyword = urlencode(preg_replace('~[^a-z0-9ก-๙\.\-\_]~iu','',$keyword)),

              'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0/' . $keyword . '">' . $row['first_subject'] . '</a>'

กด link url ยังเหมือนเดิมครับ  

url มันขึ้น อย่างนี้ครับ   http://localhost/chevy/index.p...126.msg9050/topicseen.html#new

ไม่ทราบว่าผิดตรงไหนครับ

กด ติ๊ก  Search engine friendly URLs
Apache/Lighttpd only!  แล้วครับ
เว็บ Trip And Hotel จองที่พัก ออนไลน์ โรงแรม รีสอร์ท ประหยัดสูงสุด 75% ที่ http://www.tripandhotel.com
เว็บ เครื่องซักผ้าอุตสาหกรรม  http://www.xn--12cahmu5d5b2blga5fnve5dtd8f2a0n9g3a.com
เว็บแลกเปลี่ยนประสบการณ์รถยนต์ Chevrolet Sonic ที่  http://www.chevysonic-club.com
เว็บเสื้อผ้าแฟชั่นสตรี เสื้อผ้าแฟชั่นสตรี.com ที่ http://xn--b3cwlkp1a7bew7bi7bp8jua9ijc.com/

medusakbpom

อ้างถึงจาก: paiboonkik ใน 10 กันยายน 2012, 10:01:14
อ้างถึงจาก: medusakbpom ใน 09 กันยายน 2012, 18:26:16
mod rewrite friendly url ภาษาไทยสำหรับ SEO ของ SMF 2.0 ขึ้นไปครับ ผมลองทำแล้ว ได้ผมแจ่มมากครับ
ทำให้ url เป็นภาษาไทยแล้วมี.html ตามหลังด้วยครับ
ลองทำเมื่อกี้นี่เอง ทำได้แล้วเลยเอามาแบ่งให้คนที่ยังทำไม่ได้ไปลองทำดูครับ

1. Login เข้าสู่ระบบ ไปที่เมนูผู้ดูแล จากนั้นเลือก
ส่วนปรับแต่งค่าการใช้งาน > คลิ๊กที่แสดง URLs โดยปราศจาก ?'s Apache เท่านั้น!
Login as Admin > Edit Features and Options >  Show URL's without ?'s

Search engine friendly URLs
Apache/Lighttpd only!

2. แก้ไขไฟล์ ./Source/MessageIndex.php

ค้นหา
'time' => timeformat($row['first_poster_time']),
'timestamp' => forum_time(true, $row['first_poster_time']),
'subject' => $row['first_subject'],
'preview' => $row['first_body'],
'icon' => $row['first_icon'],
'icon_url' => $settings[$context['icon_sources'][$row['first_icon']]] . '/post/' . $row['first_icon'] . '.gif',
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['first_subject'] . '</a>'


เอาไปทับของเดิม

'time' => timeformat($row['first_poster_time']),
'timestamp' => forum_time(true, $row['first_poster_time']),
'subject' => $row['first_subject'],
'preview' => $row['first_body'],
'icon' => $row['first_icon'],
'icon_url' => $settings[$context['icon_sources'][$row['first_icon']]] . '/post/' . $row['first_icon'] . '.gif',
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
$keyword= preg_replace("~[\s]+~","-",$row['first_subject']),
$keyword = urlencode(preg_replace('~[^a-z0-9ก-๙\.\-\_]~iu','',$keyword)),
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0/' . str_replace(" ","-",$row['first_subject']) . '" target="_blank">' . $row['first_subject'] . '</a>'
/*'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0[color=red][b]/' . urlencode(preg_replace('~[^a-z0-9ก-๙\.\-\_]~iu','',$keyword)) . '[/b][/color]">' . $row['first_subject'] . '</a>'*/
/*'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0/' . urlencode($keyword) . '" target="_blank">' . $row['first_subject'] . '</a>'*/


3. Save as
แล้วอัพไฟล์ขึ้นโฮสไปทับของเดิมครับ

ขอบคุณ jigload.com

***ผมไม่ต้องการอะไรมากมาย ขอแค่ คำขอบคุณ และ +1 ก็พอครับ ^^  :wanwan017:





ใช้ smf 2.0.2 ผมทำตามแล้วมันไม่ขึ้นเลยครับ ตกหล่นตรงไหนหรือเปล่าครับ ขอคำแนะนำ ทำใน localhost

                                        'time' => timeformat($row['first_poster_time']),
               'timestamp' => forum_time(true, $row['first_poster_time']),
               'subject' => $row['first_subject'],
               'preview' => $row['first_body'],
               'icon' => $row['first_icon'],
               'icon_url' => $settings[$context['icon_sources'][$row['first_icon']]] . '/post/' . $row['first_icon'] . '.gif',
               'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
                $keyword= preg_replace("~[\s]+~","-",$row['firstSubject']),
                $keyword = urlencode(preg_replace('~[^a-z0-9ก-๙\.\-\_]~iu','',$keyword)),

               'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0/' . $keyword . '">' . $row['first_subject'] . '</a>'

กด link url ยังเหมือนเดิมครับ 

url มันขึ้น อย่างนี้ครับ   http://localhost/chevy/index.p...126.msg9050/topicseen.html#new

ไม่ทราบว่าผิดตรงไหนครับ

กด ติ๊ก  Search engine friendly URLs
Apache/Lighttpd only!  แล้วครับ

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

อัลฟา

[direct=http://x.co/1XLR7]฿ ใครกำลังมองหา Domain ราคาถูก!! ของ Goddady ในราคาเพียงแค่ 179.7 บาทเท่านั้นค่ะ คลิกเลย (:[/direct]
@----------------------------------------------------------------------@
฿รับสมัคร Google Adsense สมัครแบบผ่าน 100% และ Acc ของมีคุณภาพด้วย รับประกันคุณภาพค่ะ ตอนนี้รับอีกแค่ 1 Acc เท่านั้นนะค่ะ มีรายงานการทำงานให้ดูด้วยค่ะPM!! (:

Muller

ถามต่อครับ....ถ้าเอาเว็บไทยไปใส่ลิ้งก์เว็บ 2.0และเว็บ  social bookmark ของต่างประเทศ ....แล้วblog เราจะโดนลบหรือเปล่าครับ   :wanwan044: :wanwan044:
ข้อแตกต่างของคนสำเร็จกับคนล้มเหลวก็คื[direct=http://womenbreastenhancement.com]อ[/direct] ความคิด

Ferrited

อ้างถึงจาก: Muller ใน 10 กันยายน 2012, 18:00:37
ถามต่อครับ....ถ้าเอาเว็บไทยไปใส่ลิ้งก์เว็บ 2.0และเว็บ  social bookmark ของต่างประเทศ ....แล้วblog เราจะโดนลบหรือเปล่าครับ   :wanwan044: :wanwan044:

เคยเอาไปลง ไม่โดนนะ แรงดีด้วย ไม่รู้ว่าเพราะเขาจับไม่ได้ หรือไม่ลบอยู่แล้ว ก็ไม่รู้
คูปองลด Hostgator "gt25percentoff"
[direct=http://jigload.com]แอนดรอยด์[/direct]
อัพเดทข่าววงการไอที ตลอด 24 ชั่วโมง
ทุกเรื่องราวเกี่ยวกับ[direct=http://jigload.com]ไอโฟน[/direct][direct=http://pirun.ku.ac.th/~g5614500537]ธีมไลน์ [/direct]([direct=http://jigload.com]ซัมซุง กาแล็กซี่[/direct])และ[direct=http://jigload.com]โปรแกรมแต่งรูป[/direct])