drupal开启clean link

上一篇 / 下一篇  2008-09-25 15:43:36 / 个人分类:drupal

启用apache的rewrite_mod.

在http.conf中写下:
<Directory "D:/web/drupal/">
   RewriteEngine on
   RewriteBase /drupal
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</Directory>

重启apache,然后在管理->站点设置->简洁链接中开启既可.

还有方案B,搞不动allowoverride的怎么弄.


TAG: drupal

 

评分:0

我来说两句

日历

« 2024-04-16  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 12079
  • 日志数: 24
  • 建立时间: 2008-06-11
  • 更新时间: 2008-11-17

RSS订阅

Open Toolbar