sailing

Everything...

轻松安装debian下的apache2和mod_rewrite


1.安装apache2
apt-get install apache2

2.激活mod rewrite
a2enmod rewrite

3.让apache2得进程加载新配置的rewrite模块
/etc/init.d/apache2 force-reload

4. rewrite规则文件,放在目录的.htaccess,或者if module的配置文件里面
RewriteEngine on
RewriteRule ^/articles/([0-9]+)$                /?article=$1    [PT]

good luck!

posted on 2008-06-04 15:42  乌生鱼汤  阅读(1420)  评论(0编辑  收藏  举报

导航