脚本开发,脚本学习,辅助软件,各种工具软件

访问密码统一为:3158

查看: 3844|回复: 0

windows下apache服务器discuz伪静态设置

[复制链接]

91

主题

93

帖子

672

积分

专属

Rank: 1

积分
672
发表于 2020-2-23 23:59:01 | 显示全部楼层 |阅读模式
环境:
系统 windows
apache 2.4.39
加载Rewrite模块:
在conf目录下httpd.conf中找到
LoadModule rewrite_module modules/mod_rewrite.so
这句,去掉前边的注释符号“#”,或添加这句。
允许在任何目录中使用“.htaccess”文件,将“AllowOverride”改成“All”(默认为“None”):
# 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
在Windows系统下不能直接建立“.htaccess”文件,可以在命令行下使用“echo a> .htaccess”建立,然后使用记事本编辑。

或者直接下载“.htaccess”文件http://xz.qqqtttt.com/file/20110282-423884157

3Q4T网,编程学习交流基地。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表