iis伪静态都无效,直接是后台500错误打不开 迅睿框架 更新 2021-12-17 10:43:42 474214480 以下2个iis伪静态都无效为什么呀↑↑↑↑↑↑↑↑↑无效↑↑↑↑↑↑↑↑↑无效直接是后台500错误打不开有大佬解决下吗这个是文件rewrite.php
这个提示是服务器没设置对规则,反正iis规则版本比较多,不推荐使用iis服务器,官方都不推荐用iis
config/rewrite.php 伪静态解析规则文件里面只能放PHP代码/web.config 伪静态环境配置文件(如果文件不存在需要自建)里面才是放<?xml version="1.0" ?><rules> <rule name="xunruicms PC" stopProcessing="true"> <match url=".(js|ico|gif|jpe?g|bmp|png|css)$" negate="true"/> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true"/> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true"/> </conditions> <action type="Rewrite" url="/index.php"/> </rule></rules>
config/rewrite.php
2、删除规则中的“RewriteBase XXXXX”相关的东西。只保留一种规则即可。
3、mobile文件夹单独再导入一次。相当于把mobile文件夹设置成为一个虚拟目录。导入方法同上。