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!

相关文章:

  • 2022-12-23
  • 2022-02-04
  • 2021-09-09
  • 2021-12-29
  • 2022-12-23
  • 2021-12-12
猜你喜欢
  • 2022-12-23
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-05
  • 2021-12-15
  • 2021-07-08
相关资源
相似解决方案