cms icon indicating copy to clipboard operation
cms copied to clipboard

升级发现,包含文件获取不到include里面 .htm 这样格式的的文件

Open jiangbin4586 opened this issue 8 years ago • 4 comments

升级以后发现,包含文件获取不到include里面 .htm 这样格式的的文件 以前添加是有个 文件扩展名 可选的,现在是没有了,但如果以前添加的不是.html 而是其他格式的,是否还能显示?这个算bug吗?

jiangbin4586 avatar Sep 29 '18 01:09 jiangbin4586

stl:include是可以使用任意后缀的文件,你说的是后台包含文件管理里面获取不到.htm格式文件吗

starlying avatar Sep 29 '18 01:09 starlying

嗯,就是旧版本的include文件夹里面已经有top.htm,foot.htm 这样的不带l 的格式,保存站点模版,然后倒入新后台,在后台包含文件管理是获取不到文件夹里面的对应的文件的。

jiangbin4586 avatar Sep 29 '18 01:09 jiangbin4586

3.x的包含文件可以选文件格式,但是4.x和5.x版本里都是固定的html了,应该其他格式都不能用了吧

lcgtpr avatar Sep 29 '18 07:09 lcgtpr

修改站点下的web.config可自行定义任意扩展名的服务端包含 <remove name="SSINC-shtml" /> <add name="SSINC-shtml" path="*.html" verb="GET,POST" modules="ServerSideIncludeModule" resourceType="File" requireAccess="Script" />

xelnage avatar Sep 29 '18 07:09 xelnage