Làm thế nào để bật mod rewrite cho httpd trên centos?

Để bật mod rewite cho httpd trên centos.

Tìm và sửa file /etc/httpd/conf/httpd.conf

vim /etc/httpd/conf/httpd.conf

Sửa: AllowOverride None

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

Thành: AllowOverride All

allow-overwrite on

Sau đó restart httpd service là xong.

Leave a reply:

Your email address will not be published.

Site Footer