大米CMS V7安装说明
本帖最后由 追影 于 2024-4-28 16:42 编辑(1) 网站根目录路径 选择包中的 public (必须)
(2) 设置服务器支持隐藏index.php的伪静态 (V7.1.6后可选,之前必须)
nginx 的伪静态:
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?s=/$1 last;
break;
}
}
apache的伪静态:
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php
#RewriteRule ^(.*)$ index.php/$1
</IfModule>
(3) 如果您是mysql5.7或以上版本 配置sql_mod (V7.1.6后可选,之前必须)
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
(4) 如果您的服务器是nginxurl路径需要支持 /index.php/home/index/index 这样 还需要配置nginx默认是不支持PATH_INFO的 (V7.1.6后可选,之前必须)
参考:https://www.damicms.com/bbs/foru ... 3D1&_dsign=ebb902c4
:D:D:D:D:D:D:D
页:
[1]