ตามลิงค์นี้
http://codex.wordpress.org/Using_Permalinks
ถ้าไม่ได้ใช้ WP ก็ประยุกต์เอานะครับ
in .htaccess files.
The following permalink rewrite code should be included in your .htaccess file:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
enabled AllowOverride directive in httpd.config:
Remove #
#LoadModule rewrite_module modules/mod_rewrite.so
Enabled AllowOverride
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
You may also have to enable the AllowOverride directive in your DocumentRoot:
<Directory /var/www/html>
# ... other directives...
AllowOverride All
</Directory>
หากยังไม่ได้ก็ไม่รู้แล้วครับ จำไม่ได้แล้ว นานมากแล้ว