<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>รวมวิธีการใช้ Wordpress, Joomla, Drupal, Magento และ SEO &#187; permalink</title> <atom:link href="http://killthewhat.com/tag/permalink/feed/" rel="self" type="application/rss+xml" /><link>http://killthewhat.com</link> <description>Knowledge Base by howhost.com</description> <lastBuildDate>Fri, 24 Dec 2010 15:00:17 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.3</generator> <item><title>url ภาษาไทยแสดงไม่ครบบน wordpress</title><link>http://killthewhat.com/wordpress-tutorials/url-%e0%b8%a0%e0%b8%b2%e0%b8%a9%e0%b8%b2%e0%b9%84%e0%b8%97%e0%b8%a2%e0%b9%81%e0%b8%aa%e0%b8%94%e0%b8%87%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b8%84%e0%b8%a3%e0%b8%9a%e0%b8%9a%e0%b8%99-wordpress/</link> <comments>http://killthewhat.com/wordpress-tutorials/url-%e0%b8%a0%e0%b8%b2%e0%b8%a9%e0%b8%b2%e0%b9%84%e0%b8%97%e0%b8%a2%e0%b9%81%e0%b8%aa%e0%b8%94%e0%b8%87%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b8%84%e0%b8%a3%e0%b8%9a%e0%b8%9a%e0%b8%99-wordpress/#comments</comments> <pubDate>Thu, 25 Feb 2010 17:47:55 +0000</pubDate> <dc:creator>snappy</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[permalink]]></category> <category><![CDATA[url]]></category> <category><![CDATA[ภาษาไทย]]></category><guid
isPermaLink="false">http://killthewhat.com/?p=5541</guid> <description><![CDATA[ในกรณีที่เราทำ permalink ใน wordpress แล้วนำหัวข้อของบทความเรามาทำเป็น url ด้วยซึ่งถ้าเกิดหัวข้อของเราเป็นภาษาไทยและมีความยาวมากๆ ระบบก็จะตัดคำทิ้ง ทำให้เวลาแสดง url ที่เป็นภาษาไทยแล้วจะแสดงออกมาไม่ครบ มีวิธีแก้ไขดังนี้ครับ 1. ให้เราไปที่ไฟล์ wp-includes/formatting.php แล้วหาโค็ดนี้ครับ $title = utf8_uri_encode($title, 200); แก้ตัวเลขจาก 200 ไปเป็นเลขที่สูงกว่า เช่น 1000 จากนั้นเซพ 2. เข้าหน้า phpmyadmin ของฐานข้อมูล wordpress ของเราจากนั้นกดที่ wp_posts แล้วเลือกที่ Structure 3. จากนั้นแก้ไขในส่วนของ post_name 4. แก้ Length/Values1 จาก 200 ไปเป็น 1000 แล้วทำการเซพ เสร็จละครับเท่านี้ url ภาษาไทยของเราก็จะแสดงออกมาครบ ขอบคุณ : http://www.thaiseoboard.com/index.php/topic,101076.0.html]]></description> <content:encoded><![CDATA[<p>ในกรณีที่เราทำ permalink ใน wordpress แล้วนำหัวข้อของบทความเรามาทำเป็น url ด้วยซึ่งถ้าเกิดหัวข้อของเราเป็นภาษาไทยและมีความยาวมากๆ ระบบก็จะตัดคำทิ้ง<span
id="more-5541"></span> ทำให้เวลาแสดง url ที่เป็นภาษาไทยแล้วจะแสดงออกมาไม่ครบ มีวิธีแก้ไขดังนี้ครับ</p><p>1. ให้เราไปที่ไฟล์ wp-includes/formatting.php แล้วหาโค็ดนี้ครับ</p><pre class="brush: php; title: ;">
$title = utf8_uri_encode($title, 200);
</pre><p>แก้ตัวเลขจาก 200 ไปเป็นเลขที่สูงกว่า เช่น 1000 จากนั้นเซพ</p><p>2. เข้าหน้า phpmyadmin ของฐานข้อมูล wordpress ของเราจากนั้นกดที่ wp_posts แล้วเลือกที่ Structure<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2010/02/wordpress-db.png" alt="" title="wordpress-db" width="550" height="327" class="aligncenter size-full wp-image-5542" /></p><p>3. จากนั้นแก้ไขในส่วนของ post_name<br
/> <a
href="http://killthewhat.com/wp-content/uploads/2010/02/wordpress-post-name.png" rel="lightbox[5541]"><img
src="http://killthewhat.com/wp-content/uploads/2010/02/wordpress-post-name.png" alt="" title="wordpress-post-name" width="550" height="60" class="aligncenter size-full wp-image-5543" /></a></p><p>4. แก้ Length/Values1 จาก 200 ไปเป็น 1000 แล้วทำการเซพ<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2010/02/wordpress-LengthValues.png" alt="" title="wordpress-LengthValues" width="479" height="216" class="aligncenter size-full wp-image-5544" /></p><p>เสร็จละครับเท่านี้ url ภาษาไทยของเราก็จะแสดงออกมาครบ</p><p>ขอบคุณ : http://www.thaiseoboard.com/index.php/topic,101076.0.html</p> ]]></content:encoded> <wfw:commentRss>http://killthewhat.com/wordpress-tutorials/url-%e0%b8%a0%e0%b8%b2%e0%b8%a9%e0%b8%b2%e0%b9%84%e0%b8%97%e0%b8%a2%e0%b9%81%e0%b8%aa%e0%b8%94%e0%b8%87%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b8%84%e0%b8%a3%e0%b8%9a%e0%b8%9a%e0%b8%99-wordpress/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>ทำ suckerfish ให้กับ permalink ใน drupal</title><link>http://killthewhat.com/drupal-tutorials/%e0%b8%97%e0%b8%b3-suckerfish-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b8%81%e0%b8%b1%e0%b8%9a-permalink-%e0%b9%83%e0%b8%99-drupal/</link> <comments>http://killthewhat.com/drupal-tutorials/%e0%b8%97%e0%b8%b3-suckerfish-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b8%81%e0%b8%b1%e0%b8%9a-permalink-%e0%b9%83%e0%b8%99-drupal/#comments</comments> <pubDate>Mon, 16 Nov 2009 17:48:12 +0000</pubDate> <dc:creator>snappy</dc:creator> <category><![CDATA[Drupal]]></category> <category><![CDATA[menu]]></category> <category><![CDATA[permalink]]></category> <category><![CDATA[suckerfish]]></category><guid
isPermaLink="false">http://killthewhat.com/?p=5142</guid> <description><![CDATA[ผมหาวิธีอยู่นานครับสำหรับการทำเมนู permalink ใน drupal เพื่อให้มันได้มี submenu ออกมาหรือเขาเรียกกันว่า suckerfish ไว้สำหรับเว็บที่มีการแบ่งเมนูออกมาเป็นหลายระดับ วิธีการทำก็ไม่ยากครับ ให้เราไปที่ไฟล์ template.php ของ theme ที่เราใช้งาน ถ้าใครไม่มีก็สร้างขึ้นมา แล้วใส่ code ชุดนี้ลงไป &#60;?php function phptemplate_preprocess_page(&#38;$vars) { // Generate menu tree from source of primary links $vars['primary_links_tree'] = menu_tree(variable_get('menu_primary_links_source', 'primary-links')); } ?&#62; จากนั้นไปที่ไฟล์ page.tpl.php ของ theme หา &#60;?php if ($primary_links): ?&#62; &#60;div id=&#34;primary-menu&#34;&#62; &#60;?php print $primary_menu; ?&#62; &#60;/div&#62; &#60;?php [...]]]></description> <content:encoded><![CDATA[<p><img
src="http://killthewhat.com/wp-content/uploads/2009/11/suckerfish.png" alt="suckerfish" title="suckerfish" width="413" height="239" class="aligncenter size-full wp-image-5143" /></p><p>ผมหาวิธีอยู่นานครับสำหรับการทำเมนู permalink ใน drupal เพื่อให้มันได้มี submenu ออกมาหรือเขาเรียกกันว่า <strong>suckerfish</strong> ไว้สำหรับเว็บที่มีการแบ่งเมนูออกมาเป็นหลายระดับ<span
id="more-5142"></span> วิธีการทำก็ไม่ยากครับ ให้เราไปที่ไฟล์ template.php ของ theme ที่เราใช้งาน ถ้าใครไม่มีก็สร้างขึ้นมา แล้วใส่ code ชุดนี้ลงไป</p><pre class="brush: php; title: ;">
&lt;?php
function phptemplate_preprocess_page(&amp;$vars) {
// Generate menu tree from source of primary links
  $vars['primary_links_tree'] = menu_tree(variable_get('menu_primary_links_source', 'primary-links'));
}
?&gt;
</pre><p>จากนั้นไปที่ไฟล์ page.tpl.php ของ theme หา</p><pre class="brush: php; title: ;">
&lt;?php if ($primary_links): ?&gt;
&lt;div id=&quot;primary-menu&quot;&gt;
&lt;?php print $primary_menu; ?&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;
</pre><p>แก้เป็น</p><pre class="brush: php; title: ;">
&lt;?php if ($primary_links): ?&gt;
&lt;div id=&quot;primary-menu&quot;&gt;
&lt;?php print $primary_links_tree; ?&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;
</pre><p>จากนั้นไป clear cache ของ drupal ครับ Administer > Site configuration > Performance<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/11/clear-cache.png" alt="clear-cache" title="clear-cache" width="386" height="136" class="aligncenter size-full wp-image-5144" /></p><p>เวลาใช้งานก็ให้เราติ้ก Expanded ให้กับเมนูที่มี submenu ด้วยนะครับ<br
/> <a
href="http://killthewhat.com/wp-content/uploads/2009/11/submenu.png" rel="lightbox[5142]"><img
src="http://killthewhat.com/wp-content/uploads/2009/11/submenu.png" alt="submenu" title="submenu" width="630" height="158" class="aligncenter size-full wp-image-5145" /></a></p><p>ส่วนที่เหลือก็เป็นเรื่องของการปรับแต่ง css ละครับ&#8230;</p><p>via : http://drupal.org/node/583450</p> ]]></content:encoded> <wfw:commentRss>http://killthewhat.com/drupal-tutorials/%e0%b8%97%e0%b8%b3-suckerfish-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b8%81%e0%b8%b1%e0%b8%9a-permalink-%e0%b9%83%e0%b8%99-drupal/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>permalink ทำให้ url อ่านง่ายขึ้นเพื่อ SEO</title><link>http://killthewhat.com/wordpress-tutorials/permalink-to-seo/</link> <comments>http://killthewhat.com/wordpress-tutorials/permalink-to-seo/#comments</comments> <pubDate>Fri, 08 May 2009 08:51:35 +0000</pubDate> <dc:creator>snappy</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[permalink]]></category> <category><![CDATA[seo]]></category> <category><![CDATA[slug]]></category> <category><![CDATA[tips]]></category><guid
isPermaLink="false">http://killthewhat.com/?p=821</guid> <description><![CDATA[โดยปกติแล้ว url ลิงค์ต่างๆของ wordpress นั้นจะเป็นแบบ http://killthewhat.com/?p=127 ซึ่งมันอ่านไม่ออกและไม่สามรถเดาได้ว่าลิงค์นี้คืออะไร และที่สำคัญสุดคือ google ไม่รู้จักครับทำให้ไม่สามารถเก็บข้อมูลนี้ได้ ฉะนั้นเราควรมาทำ permalink กันครับจะสามารถเปลี่ยน url ให้เป็นแบบของ killthewhat ก็ได้ครับทำให้อ่านง่ายสื่อถึงเนื้อหาของเราและ google ก็สามารถอ่านออกครับ เช่น http://killthewhat.com/plesk-panel/permission/ มาเริ่มกันเลยดีกว่าครับเพื่อ SEO ของเรา เข้าไปหน้า admin นะครับแล้วเลือก Settings &#62; Permalinks ซึ่งจะเป็นการตั้งค่าของ permalink ให้เปลี่ยน link เป็นไปตามรูปแบบใดก็ได้ ในนั้นจะมี Option ให้เลือกอยู่ 5 จุดด้วยกัน ซึ่งก็จะแสดงผล URL แตกต่างกันไป Default http://killthewhatcom/?p=5 Date and name http://killthewhatcom/2009/02/28/permalink/ Month and name http://killthewhat.com/2009/05/sample-post/ Numeric http://killthewhatcom/archives/5/ [...]]]></description> <content:encoded><![CDATA[<p>โดยปกติแล้ว url ลิงค์ต่างๆของ wordpress นั้นจะเป็นแบบ http://killthewhat.com/?p=127 ซึ่งมันอ่านไม่ออกและไม่สามรถเดาได้ว่าลิงค์นี้คืออะไร และที่สำคัญสุดคือ google ไม่รู้จักครับทำให้ไม่สามารถเก็บข้อมูลนี้ได้ ฉะนั้นเราควรมาทำ permalink กันครับจะสามารถเปลี่ยน url ให้เป็นแบบของ killthewhat ก็ได้ครับทำให้อ่านง่ายสื่อถึงเนื้อหาของเราและ google ก็สามารถอ่านออกครับ เช่น http://killthewhat.com/plesk-panel/permission/ มาเริ่มกันเลยดีกว่าครับเพื่อ SEO ของเรา<br
/> <span
id="more-821"></span><br
/> เข้าไปหน้า admin นะครับแล้วเลือก Settings &gt; Permalinks</p><p
style="text-align: center;"><img
class="aligncenter size-full wp-image-823" title="howhost_0034" src="http://killthewhat.com/wp-content/uploads/2009/05/howhost_0034.png" alt="howhost_0034" width="137" height="191" /></p><p>ซึ่งจะเป็นการตั้งค่าของ permalink ให้เปลี่ยน link เป็นไปตามรูปแบบใดก็ได้</p><p
style="text-align: center;"><a
href="http://killthewhat.com/wp-content/uploads/2009/05/howhost_0044.png" rel="lightbox[821]"><img
class="aligncenter size-full wp-image-825" title="howhost_0044" src="http://killthewhat.com/wp-content/uploads/2009/05/howhost_0044.png" alt="howhost_0044" width="650" height="285" /></a></p><p>ในนั้นจะมี Option ให้เลือกอยู่ 5 จุดด้วยกัน ซึ่งก็จะแสดงผล URL แตกต่างกันไป</p><ul><li>Default<p>http://killthewhatcom/?p=5</li><li> Date and name<p>http://killthewhatcom/2009/02/28/permalink/</li><li>Month and name<p>http://killthewhat.com/2009/05/sample-post/</li><li> Numeric<p>http://killthewhatcom/archives/5/</li><li> Custom Structure<br
/> อันนี้เราเลือกแสดงผลได้เอง เช่น</p><p>http://killthewhat.com/plesk-panel/permission/</li></ul><p>จาก 1-4 เราเห็นอยู่แล้วว่าจะแสดงผลยังไง ส่วนอันที่ 4 ทาง wordpress ได้กำหนดตัวแปรไว้ให้เราจัดการการแสดงผล URL เอาไว้หลากหลายพอดู</p><ul><li> %year%<br
/> แสดงปีแบบ 4 ตัวอักษร เช่น 2007</li><li> %monthnum%<br
/> แสดงเลขเดือนแบบ 2 ตัวอักษร เช่น 02</li><li>%day%<br
/> แสดงวันที่ เช่น 28</li><li>%hour%<br
/> แสดงชั่วโมง เช่น 15</li><li>%minute%<br
/> แสดงนาที เช่น 43</li><li>%second%<br
/> แสดงวินาที เช่น 33</li><li>%postname%<br
/> แสดงชื่อของ Post</li><li> %post_id%<br
/> แสดงหมายเลข ID ของ Post เช่น 5</li><li>%category%<br
/> แสดง Category</li><li>%author%<br
/> แสดงชื่อผู้เขียน Entry นั้น</li></ul><p>อ้างอิง : <a
href="http://codex.wordpress.org/Using_Permalinks">http://codex.wordpress.org/Using_Permalinks</a></p><p>ก่อนที่จะทำการเลือกหรือปรับแต่ง ให้เราทำการอัฟไฟล์ .htaccess ขึ้นไปในระบบก่อนครับ โดยเข้าไปใน Control Panel ของเรา จากนั้นเข้าไปที่ Files &gt; File Manager ให้เข้าไปที่ folder httpdocs และไปที่ folder ที่เก็บ wordpress ไว้ของใครอยู่ที่ root ก็ไม่ต้องไปไหนครับ กด Add New File</p><p
style="text-align: center;"><img
class="aligncenter size-full wp-image-832" title="howhost_0052" src="http://killthewhat.com/wp-content/uploads/2009/05/howhost_0052.png" alt="howhost_0052" width="650" height="297" /></p><p>จากนั้นติ้กที่ File creation ในช่อง file name ให้ชื่อไฟล์ว่า .htaccess จากนั้น OK</p><p
style="text-align: center;"><a
href="http://killthewhat.com/wp-content/uploads/2009/05/howhost_0063.png" rel="lightbox[821]"><img
class="aligncenter size-full wp-image-834" title="howhost_0063" src="http://killthewhat.com/wp-content/uploads/2009/05/howhost_0063.png" alt="howhost_0063" width="650" height="216" /></a></p><p>เราจะได้ไฟล์ .htaccess มาจากนั้นให้กำหนดสิทธิ์เป็น RWX RWX RWX หรือ 777 เพื่อให้ระบบสามารถเขียนไฟล์ดังกล่าวได้</p><p
style="text-align: center;"><img
class="aligncenter size-full wp-image-836" title="howhost_0072" src="http://killthewhat.com/wp-content/uploads/2009/05/howhost_0072.png" alt="howhost_0072" width="611" height="68" /></p><p>จากนั้นกลับไปที่หน้าของการตั้งค่า permalink ให้เราเลือกว่าจะกำหนด url เป็นแบบไหนจากนั้นกด OK เลยครับ ส่วนใครที่ต้องการกำหนดเอง วิธีใช้ก็ไม่ยุ่งยาก เริ่มด้วย / แล้วต่อด้วยตัวแปรที่เราอยากให้แสดง คั่นด้วย / เป็นอันใช้ได้ ตัวอย่างเช่น</p><blockquote><p>/%category%/%postname%<br
/> นี่เป็น Permalinks ที่ผมใช้กับเวปนี้ จะเห็นว่าใช้ตัวแปร 2 ตัว คือ %category% กับ %postname%</p></blockquote><p>จากนั้นกด OK ครับระบบจะทำการเขียน code บน .htaccess ให้</p><p>ข้อสังเกตุอย่างหนึ่งที่ WordPress บอกมาเกี่ยวกับการใช้ %category% กับ %postname% ก็คือ</p><blockquote><p>WordPress ไม่แนะนำให้ใช้ %postname% เดี่ยวๆในการแสดงผลครับ เพราะอาจจะทำให้เข้าหน้านั้นไม่ได้ แนะนำให้ใช้ร่วมกับ ตัวแปรอื่นๆด้วย</p></blockquote> ]]></content:encoded> <wfw:commentRss>http://killthewhat.com/wordpress-tutorials/permalink-to-seo/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 28/53 queries in 0.063 seconds using disk

Served from: killthewhat.com @ 2012-02-09 06:35:09 -->
