สำหรับวิธีการ config apache ให้รู้จัก .htaccess บน Windows ทำได้โดย
1. เปิดไฟล์ httpd.conf ขึ้นมา แล้ว แก้ไขดังนี้
  1.1 Enable mod_rewrite ก่อน โดยการ เอา เครื่องหมายชาร์ป (#) หน้า LoadModule rewrite_module modules/mod_rewrite.so ออก
  1.2 แก้ไข <Directory/>...</Directory> ให้เปลี่ยน “AllowOverride None” เป็น “AllowOverride All”
CODE
    <Directory />
        Options FollowSymLinks
        AllowOverride All
        Order deny,allow
        Deny from all
        Satisfy all
    </Directory>

  1.3 [optional] เปลี่ยน “AccessFileName .htaccess” to “AccessFileName htaccess“ เพราะ Windows ไม่สามารถมี ชื่อไฟล์ ขึ้นต้นด้วย จุด "."
แต่ Window XP ทำได้ นะ

2. จากนั้น ก็ Restart Apache Server ซะ


by คนหัวเกรียน.

{ 2 ความคิดเห็น... read them below or Comment }

YOUTUBE



Twitter Buzz

Popular Post

Blogger templates

ขับเคลื่อนโดย Blogger.

- Copyright © Rainbowmini X KiddyKissMe Ch.แนะนำวิธีเปิดเกมส์จาก WebBrowser -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -