您的位置:首页 > 运维架构 > Apache

centos7 apache 开启rewrite重写

2018-01-10 17:52 459 查看
折腾了一下午的一个问题,最终找到网上一个处理方法,如下:

找到apache配置文件 /etc/httpd/conf/httpd.conf

找到以下内容 Include conf.modules.d/*.conf
在此行内容下添加 LoadModule rewrite_module modules/mod_rewrite.so
继续找到以下内容

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将此处的AllowOverride None修改为AllowOverride all。
这里注意一点的是,AllowOverride None有一共有3处左右!所以一定要找对地方,千万千万注意!!!!

PS:原文链接http://www.yi-g.com/174.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: