ผมทำ
apache mod_rewirte บน os
Win7 ไม่ได้ครับ คือผมทำไฟล .htaccess แล้วเป็นอย่างในรูปครับ
ส่วนโค้ตใน
.htaccess ก็ลองเขียนเทสแบบนี้ครับ
---------------------------
RewriteEngine On
RewriteBase /content/
RewriteRule ^(.*).html content_detail.php?path_url=$1
---------------------------
ตัว
mod_rewrite ก็เปิดใช้แล้วครับ
แล้ว ใน httpd.conf ก็ปรับให้ AllowOverride จาก None เป็น All
<Directory />
Options FollowSymLinks ExecCGI Indexes
AllowOverride All
Order deny,allow
Deny from all
Satisfy all
</Directory>
ผมอยากลองรันบน
Win7 ดู พอมีวิธีการ ให้สามารถรันได้มั้ยครับ