下一篇 » « 上一篇

apache2最新版开启mod_rewrite

作者:    时间:2008-03-11    来源:    点击:45059    本文共1篇文章 字体:[ ]

本来要开启rewrite,只要打开httpd.conf,把下面这行前面的#去掉就可以了。

php学习之家

#LoadModule rewrite_module modules/mod_rewrite.so

可是昨天装了apache2最新版却出了意外,去掉了这行,rewrite还没打开 用了一个下午,百思不得其解.终于发现httpd.conf里有这么一段

www.444p.com版权所有

<Directory "E:/home/www">
#
# 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
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# 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 None 本文来自 www.444p.com
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all </Directory>

AllowOverride None改为AllowOverride All www.444p.com

重启Apache,终于搞定! www.444p.com版权所有

责任编辑:semirock
发表评论
密码: (游客不需要密码)
记住我【Alt+S 或 Ctrl+Enter 快速提交】

搜索工具


《PHP安装》点击排行