月度归档:2014年02月

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