3/28/2011

Linux (Apache) : mod rewrite

root@debian:/a2enmod rewrite
Enabling module rewrite.
Run '/etc/init.d/apache2 restart' to activate new configuration!
root@debian:/var/log# /etc/init.d/apache2 restart

edit site
/etc/apache2/sites-enabled/000-default


ServerAdmin webmaster@localhost

DocumentRoot /var/www

Options FollowSymLinks
AllowOverride None


Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all


:
:



ดูที่ โดยมองที่ AllowOverride None ให้เปลี่ยนเป็น All

#/etc/init.d/apache2 restart

ไฟล์ .htaccess




config apache : http://www.aboutdebian.com/internet.htm