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

发表评论

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


九 − = 1

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>