Drupal 7启用Clean URLs

1、在Apache中,加载mod_rewrite,并在httpd.conf设置 AllowOverride All,如下:

<Directory "/var/www/html">
  Options Indexes FollowSymLinks
  #AllowOverride None
  AllowOverride All
  Order allow,deny
  Allow from all
</Directory>

2、在Drupal后台Administration>Configuration>Search and metadata启用Enable clean URLs

发表评论

邮箱地址不会被公开。 必填项已用*标注


7 − 五 =