<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>khomkrit &#187; Drupal</title>
	<atom:link href="http://khomkrit.wordpress.com/tag/drupal/feed/" rel="self" type="application/rss+xml" />
	<link>http://khomkrit.wordpress.com</link>
	<description>Everything, I want to write to Everyone who want to read.</description>
	<lastBuildDate>Sun, 14 Jun 2009 16:14:23 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>th</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='khomkrit.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/2d7bd383b16b9bf673f8138645f58dcd?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>khomkrit &#187; Drupal</title>
		<link>http://khomkrit.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://khomkrit.wordpress.com/osd.xml" title="khomkrit" />
		<item>
		<title>การทำ Clean URL ใน Drupal</title>
		<link>http://khomkrit.wordpress.com/2007/09/06/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3-clean-url-%e0%b9%83%e0%b8%99-drupal/</link>
		<comments>http://khomkrit.wordpress.com/2007/09/06/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3-clean-url-%e0%b9%83%e0%b8%99-drupal/#comments</comments>
		<pubDate>Thu, 06 Sep 2007 09:37:47 +0000</pubDate>
		<dc:creator>khomkrit</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://khomkrit.wordpress.com/2007/09/06/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3-clean-url-%e0%b9%83%e0%b8%99-drupal/</guid>
		<description><![CDATA[การทำ Clean URL หรือที่แปลแล้วว่า URL สะอาด ใน Drupal (ดูเป้า=&#62;เพื่อนผมเรียกแบบนี้ตลอดเลย ไม่รู้จะดูอะไรกันนักกันหนา) เอามาจดไว้ที่นี่กันลืม หลังจากที่ลองมั่วมานาน

ให้ copy อันนี้เลยทั้งชุดไปไว้ใน ไฟล์ที่ชื่อว่า .htaccess ==&#62; ไฟล์นี้ถ้าไม่มีเราก็สร้างขึ้นเอง แล้วเอาไปไว้ในที่ที่เราเก็บเวปเราน่ะแหละหรือ public_html หรือ httpdoc หรืออะไรแล้วแต่ host
# Apache/PHP/Drupal settings:
#
# Protect files and directories from prying eyes.
Order deny,allow
Deny from all
# Set some options.
Options -Indexes
Options +FollowSymLinks
# Customized error messages.
ErrorDocument 404 /index.php
# Set the default handler.
DirectoryIndex index.php
# Override PHP settings. More [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=khomkrit.wordpress.com&blog=675037&post=52&subd=khomkrit&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>การทำ Clean URL หรือที่แปลแล้วว่า URL สะอาด ใน Drupal (ดูเป้า=&gt;เพื่อนผมเรียกแบบนี้ตลอดเลย ไม่รู้จะดูอะไรกันนักกันหนา) เอามาจดไว้ที่นี่กันลืม หลังจากที่ลองมั่วมานาน<br />
<span id="more-52"></span><br />
ให้ copy อันนี้เลยทั้งชุดไปไว้ใน ไฟล์ที่ชื่อว่า .htaccess ==&gt; ไฟล์นี้ถ้าไม่มีเราก็สร้างขึ้นเอง แล้วเอาไปไว้ในที่ที่เราเก็บเวปเราน่ะแหละหรือ public_html หรือ httpdoc หรืออะไรแล้วแต่ host</p>
<blockquote><p># Apache/PHP/Drupal settings:<br />
#</p>
<p># Protect files and directories from prying eyes.</p>
<p>Order deny,allow<br />
Deny from all</p>
<p># Set some options.<br />
Options -Indexes<br />
Options +FollowSymLinks</p>
<p># Customized error messages.<br />
ErrorDocument 404 /index.php</p>
<p># Set the default handler.<br />
DirectoryIndex index.php</p>
<p># Override PHP settings. More in sites/default/settings.php<br />
# but the following cannot be changed at runtime.</p>
<p># PHP 4, Apache 1</p>
<p>php_value magic_quotes_gpc                0<br />
php_value register_globals                0<br />
php_value session.auto_start              0</p>
<p># PHP 4, Apache 2</p>
<p>php_value magic_quotes_gpc                0<br />
php_value register_globals                0<br />
php_value session.auto_start              0</p>
<p># PHP 5, Apache 1 and 2</p>
<p>php_value magic_quotes_gpc                0<br />
php_value register_globals                0<br />
php_value session.auto_start              0</p>
<p># Reduce the time dynamically generated pages are cache-able.</p>
<p>ExpiresByType text/html A1</p>
<p># Various rewrite rules.</p>
<p>RewriteEngine on</p>
<p># If your site can be accessed both with and without the prefix www.<br />
# you can use one of the following settings to force user to use only one option:<br />
#<br />
# If you want the site to be accessed WITH the www. only, adapt and uncomment the following:<br />
# RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]<br />
# RewriteRule .* http://www.example.com/ [L,R=301]<br />
#<br />
# If you want the site to be accessed only WITHOUT the www. , adapt and uncomment the following:<br />
# RewriteCond %{HTTP_HOST} !^example\.com$ [NC]<br />
# RewriteRule .* http://example.com/ [L,R=301]</p>
<p># Modify the RewriteBase if you are using Drupal in a subdirectory and<br />
# the rewrite rules are not working properly.<br />
RewriteBase /</p>
<p># Rewrite old-style URLs of the form &#8216;node.php?id=x&#8217;.<br />
#RewriteCond %{REQUEST_FILENAME} !-f<br />
#RewriteCond %{REQUEST_FILENAME} !-d<br />
#RewriteCond %{QUERY_STRING} ^id=([^&amp;]+)$<br />
#RewriteRule node.php index.php?q=node/view/%1 [L]</p>
<p># Rewrite old-style URLs of the form &#8216;module.php?mod=x&#8217;.<br />
#RewriteCond %{REQUEST_FILENAME} !-f<br />
#RewriteCond %{REQUEST_FILENAME} !-d<br />
#RewriteCond %{QUERY_STRING} ^mod=([^&amp;]+)$<br />
#RewriteRule module.php index.php?q=%1 [L]</p>
<p># Rewrite rules for static page caching provided by the Boost module<br />
# BOOST START</p>
<p>AddCharset utf-8 .html</p>
<p>RewriteCond %{REQUEST_URI} !^/cache<br />
RewriteCond %{REQUEST_URI} !^/user/login<br />
RewriteCond %{REQUEST_URI} !^/admin<br />
RewriteCond %{HTTP_COOKIE} !DRUPAL_UID<br />
RewriteCond %{REQUEST_METHOD} ^GET$<br />
RewriteCond %{QUERY_STRING} ^$<br />
RewriteCond %{DOCUMENT_ROOT}/cache/%{SERVER_NAME}/0/%{REQUEST_URI} -d<br />
RewriteCond %{DOCUMENT_ROOT}/cache/%{SERVER_NAME}/0/%{REQUEST_URI}/index.html -f<br />
RewriteRule ^(.*)$ cache/%{SERVER_NAME}/0/$1/index.html [L]<br />
RewriteCond %{REQUEST_URI} !^/cache<br />
RewriteCond %{REQUEST_URI} !^/user/login<br />
RewriteCond %{REQUEST_URI} !^/admin<br />
RewriteCond %{HTTP_COOKIE} !DRUPAL_UID<br />
RewriteCond %{REQUEST_METHOD} ^GET$<br />
RewriteCond %{QUERY_STRING} ^$<br />
RewriteCond %{DOCUMENT_ROOT}/cache/%{SERVER_NAME}/0/%{REQUEST_URI}.html -f<br />
RewriteRule ^(.*)$ cache/%{SERVER_NAME}/0/$1.html [L]<br />
# BOOST END</p>
<p># Rewrite current-style URLs of the form &#8216;index.php?q=x&#8217;.<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]</p>
<p># $Id: boosted.txt,v 1.4 2006/12/05 10:39:19 arto Exp $</p></blockquote>
<p>** หมายเหตุ ถ้าหากว่า ดูเป้าเราไม่ได้อยู่ที่ root ก็คือมันอยู่ใน sub directory นั่นแหละ ก็ให้แก้ตรงบรรทัดที่เป็น</p>
<p>RewriteBase / ให้เป็น RewriteBase /example =&gt; ในกรณีที่อยู่ในโฟลเดอร์ชื่อ example</p>
<p>ที่มาหาได้จาก <a href="http://drupal.org/node/121834">http://drupal.org/node/121834</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/khomkrit.wordpress.com/52/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/khomkrit.wordpress.com/52/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/khomkrit.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/khomkrit.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/khomkrit.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/khomkrit.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/khomkrit.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/khomkrit.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/khomkrit.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/khomkrit.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/khomkrit.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/khomkrit.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=khomkrit.wordpress.com&blog=675037&post=52&subd=khomkrit&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://khomkrit.wordpress.com/2007/09/06/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3-clean-url-%e0%b9%83%e0%b8%99-drupal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">khomkrit</media:title>
		</media:content>
	</item>
	</channel>
</rss>