环境:
由于某些原因只能把Fastadmin-cms放到32位Windows服务器iis7的ISAPI_Rewrite3环境中。
本次情况比较极端,部署服务器没有链接Internet网。
一、安装环境(32位服务器):
追求速度,我直接使用的是PHPstudy2018版,安装后解压即可用。护卫神PHP环境32位版本不能下载。其他要联网下载环境的均pass。
1、iis7 添加fast-cgi模块,位置为PHPstudy内PHP7.1(PHP执行模块,不是映射)。
2、MySQL直接启动,自带的Apache换个端口。
3、安装 ISAPI_Rewrite3_0112.msi 伪静态插件
二、伪静态配置:
1、使用 .htaccess 文件配置:
RewriteEngine on
RewriteBase /
#此处好像没生效?请知道的大神告诉我
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d
#推荐使用这个,不影响后台URL
RewriteRule ^(.*).html$ index.php?s=$1%{QUERY_STRING} [L]
#这个是全局,请自行测试使用
RewriteRule (.*)$ /index\.php\?s=$1&%{QUERY_STRING} [L]
2、从客户端(&)中检测到有潜在危险的 Request.Path 值。点击下一页报该错误
注意原系统web.config内参数重名,例如:<httpRuntime,需要把内部参数合并。
<system.web>
<httpRuntime requestPathInvalidCharacters="" requestValidationMode="2.0" />
<pages validateRequest="false" />
</system.web>
三、系统修改:
1、后台编辑文章,无法加载扩展字段,其他ajax错误也是如此:
\public\assets\js\backend\cms\archives.js
Fast.api.ajax({
url: 'cms/archives/get_fields_html',
data: {channel_id: value, archives_id: $("#archive-id").val()}
}, function (data) {
// 上边代码中“url: 'cms/archives/get_fields_html',”修改为:后台地址.php?s=
url: '/admin.php?s=/cms/archives/get_fields_html',
完。
1988

被折叠的 条评论
为什么被折叠?



