Fix Drupal 'Clean URLs' problems
a2enmod rewrite //增加rewritemodule
//增加以下到httpd.conf 或 vhosts.d 对应的conf配置文件中
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^ index.php [L]
其他php7的模块能装的都给装上,这样省事。php -v 显示无效,是因为忘记安装 php7-cli 。
//原文链接如下
Fix Drupal 'Clean URLs' problems | Troubleshooting Drupal | Drupal Wiki guide on Drupal.org
菜单分类