启用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的怎么弄.