折腾了好久,终于是把Drupal clean URL设置给弄好了。——等会把我的博客也改装一下。
废话不多说,直奔主题吧。
运行环境:ubuntu_8.10_desktop + Apache/2.2.9 (Ubuntu)
首先加载mod_rewrite模块:$: sudo a2enmod rewrite
使用命令 $:apache2ctl -M
查看模块是否成功加载,如果看到 rewrite_module (shared) 则加载成功。
接着,修改Apache2的配置文件:
$:sudo gedit /etc/apache2/apache2.conf
确认 AccessFileName .htaccess是否启用。如果没有启用,将注销取消。
最后,打开站点配置文件,
$:sudo gedit /etc/apache2/sites-enabled/000-default
将所有的AllowOverride None改为AllowOverride All
至此,Apache的设置已经完成,重启服务。
打开Home » Administer » Site configuration»Clean URLs,选择Enabled,确认。
OK,大功告成。
注:采用.htaccess模式进行配置,具体的转换规则由系统自动生成,不需要另外修改rewrite规则。
分享到:
相关推荐
drupal-fck设置 对drupal中FCKeditor进行设置, 1内建的文件管理器2IMCE模块3upload模
主要为大家介绍了drupal的url传值和表单传值,以实例形式较为详细的分析了drupal的URL传值与表单传值的具体实现方法,是采用drupal建站中非常实用的技巧,需要的朋友可以参考下
drupal 7.15 设置 (14)
1. 点击任务条上的WAMPSERVER图标, 2. 选择PHP文件夹, 3. 选择 PHP Extensions , 4. 点选php_uploadprogress
包含:Drupal7宝典; Drupal开发指南; Using Drupal(强烈推荐) 值得你下载!
Drupal dataDrupal data
Drupal is an award winning open source Content Management System (CMS). Based on PHP/MySQL, its power and flexibility combined with its exceptional design mean it is one of the most popular choices ...
drupal6邮箱配置和简洁链接设置
"Enterprise Drupal 8 Development: For Advanced Projects and Large Development Teams" English | ISBN: 1484202546 | 2017 | 309 pages | PDF | 9 MB Successfully architect a Drupal 8 website that scales ...
drupal6的安装,drupal6的安装drupal6的安装drupal6的安装
drupal7 vs drupal6 详细的列出了从drupal6升级到drupal7所做的一些改动。 从代码,配置,UI,API等全方面的诠释drupal7与drupal6 的不同之处。
Decoupled Drupal in Practice: Architect and Implement Decoupled Drupal Architectures Across the Stack By 作者: Preston So ISBN-10 书号: 1484240715 ISBN-13 书号: 9781484240717 Edition 版本: 1st ed. ...
零起点学习Drupal教程零起点学习Drupal教程零起点学习Drupal教程
PHP 编程 Drupal Patch
Beginning Drupal 8 teaches you how to build, maintain, and manage Drupal 8-based web sites. The book covers what Drupal is, using Drupal when building a new web site, installing and configuring Drupal...
drupal7图文安装教程
Drupal6开发手册Drupal6开发手册Drupal6开发手册Drupal6开发手册Drupal6开发手册Drupal6开发手册Drupal6开发手册
Drupal专业开发指南,这是drupal5版的。可能现在还有人用。
Drupal 7 高级开发第三版 Drupal7专业开发指南
开启了url_alter后,将实现两个HOOK,hook_url_inbound_alter与hook_url_outbound_alter,作用是重写URL,第三方URL重写模块都需要实现它。