开发框架 版主:迅睿框架研发组
iis伪静态都无效,直接是后台500错误打不开
类型:迅睿CMS 更新时间:2021-12-17 10:43:42 iis伪静态

image

以下2个iis伪静态都无效为什么呀

image


↑↑↑↑↑↑↑↑↑无效

image



↑↑↑↑↑↑↑↑↑无效直接是后台500错误打不开



image

有大佬解决下吗


这个是文件rewrite.php

image

image

image

回帖
  • 坤哥
    #1楼    坤哥
    2021-12-17 10:01:19
    Chrome 0

    image
    这个提示是服务器没设置对规则,反正iis规则版本比较多,不推荐使用iis服务器,官方都不推荐用iis
  • 欢
    #2楼    欢
    2021-12-17 10:05:18
    Chrome 0
    坤哥 我虚拟空间来得,之前买错了,又不想浪费。php7.3版本的
  • 胡金海
    #3楼    胡金海
    2021-12-17 10:08:37
    Chrome 0
    论坛有人弄过iis,搜索下帖子看看
  • 欢
    #4楼    欢
    2021-12-17 10:10:23
    Chrome 0
    胡金海 这2个iis规则就是论坛的 😭
  • LandQ
    #5楼    LandQ
    2021-12-17 10:13:30
    Chrome 0

    image
    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>
  • 欢
    #6楼    欢
    2021-12-17 10:15:09
    Chrome 0
    LandQ 我测试过rewrite不加那个代码,加过web.config的,还是不行,我弄了10个小时了 😭
  • LandQ
    #7楼    LandQ
    2021-12-17 10:17:24
    Chrome 0
    /web.config
    image
    config/rewrite.php
    image
  • masker90
    #8楼    masker90
    2021-12-17 10:43:42
    Chrome 0
    我说一下我个人的做法,最起码我个人使用没有问题。1、IIS的规则,请使用IIS的导入规则功能。
    image
    2、删除规则中的“RewriteBase XXXXX”相关的东西。只保留一种规则即可。
    image
    3、mobile文件夹单独再导入一次。相当于把mobile文件夹设置成为一个虚拟目录。导入方法同上。