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. Required fields are marked *

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
Click outside to hide the comparison bar
Compare