标签归档:Apache

Drupal 7启用Clean URLs

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

  1. <Directory "/var/www/html">
  2. Options Indexes FollowSymLinks
  3. #AllowOverride None
  4. AllowOverride All
  5. Order allow,deny
  6. Allow from all
  7. </Directory>

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