第2问,配置drupal简洁URL
示例:domain.com/?q=admin ,domain.com/admin,后者就是简洁URL,去掉了“?q=”的URL。简洁URL的好处,SEO。
1, F:\xampp\apache\conf,在该目录下找到httpd.conf文件,打开,找到#LoadModule rewrite_module modules/mod_rewrite.so。
将前面的注释符“#”去掉。
2,把F:\xampp\apache\conf\apache conf里面的AllowOverride None改为了AllowOverride All,试了一下
<Directory "F:/xampp/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# for more information.
#
Options Indexes FollowSymLinks Includes ExecCGI
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
相关文章:
在XAMPP下,配置简洁URL(clean urls), http://zhupou.cn/drupal-handbook/tutorials/clean-url-support-in-xampp
drupal下面的clean url(简洁链接)问题解决: http://evance.name/weblog/2007.08.18
工作日志:在nginx下实现drupal重写: http://www.xiaoyh.com/nginx-drupal-url
评论
为什么我的apache\conf目录下面没有apache
为什么我的apache\conf目录下面没有apache conf
应为上面所说的XAMPP的版本比较低,1.6.*的,或者更
应为上面所说的XAMPP的版本比较低,1.6.*的,或者更低一点,
最新的XAMPP版本为了1.7.*,最新版本和老版本的配置文件放置的不完全一样,我也是今天才看到最新版本的,