基础教程
使用手册
广告管理
模板设置
数据库管理
插件管理
分销管理
积分管理
小程序直播
第三方账号注册流程
网站模块
商品模块
订单管理模块
供应商模块
数据模块
微商城模块
小程序&APP模块
常见问题
支付对接
API接口
购物车相关接口
开发手册
支付退款接口
视频教程
FB视频教程
首页 > B2C商城 > 开发手册 > 基础教程 > 正文
伪静态配置
Linux 下Apache开启伪静态的配置
1、打开Apache的配置文件httpd.conf
#LoadModule rewrite_module modules/mod_rewrite.so
把前面的 “#”去掉
2、把 AllowOverride None 改为 AllowOverride All
#
# 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
3,让Apache支持.htaccess
Options FollowSymLinks
AllowOverride None
修改为 copy
Options FollowSymLinks
AllowOverride All
重启Apache即可以生效
通过PHP提供的phpinfo()函数查看环境配置,通过Ctrl+F查找到“Loaded Modules”,其中列出了所有apache2handler已经开启的模块,如果里面包括“mod_rewrite”,则已经支持,不再需要继续设置。
