How to enable .htaccess for Apache HTTP server พิมพ์

  • 1

วิธีการเปิด .htaccess สำหรับ Apache



แก้ไขไฟล์ Config ที่ /etc/httpd/config/httpd.conf


ดูในส่วนของ <Directory></Directory>

ตัวอย่างการแก้ไข
<Directory /var/www/html>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

เมื่อแก้ไขเสร็จแล้ว ให้ดำเนินการ Restart Service

service httpd restart

คำตอบนี้เป็นประโยชน์หรือไม่?

« กลับ