Posted by: mrduc on: July 8, 2008
Để sử dụng mod rewrite của apache trong ubuntu trước tiên bạn cần
kích hoạt module rewrite bằng cách vào Applications — > Accessorices –> Terminal gõ lệnh:
$ sudo a2enmod rewrite
Tiếp đó mở file : /etc/apache2/sites-enabled/000-default
và sửa lại dòng
AllowOverride None thành AllowOverride All
chú ý : có thể sửa tất cả các dòng None thành All hoặc chỉ cần sửa tại khu vực /var/www
sau đó restart lại apache là xong :
sudo /etc/init.d/apache2 force-reload
[...] Kích hoạt Mod rewrite trong Ubuntu Để sử dụng mod rewrite của apache trong ubuntu trước tiên bạn cần … kích hoạt module rewrite bằng cách vào Applications… [...]