zoukankan      html  css  js  c++  java
  • 解决部署 React 框架 Next.js 到 IIS 上刷新页面出现 404 问题

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
     <system.webServer>
       <rewrite>
         <rules>
           <rule name="Handle History Mode and custom 404/500" stopProcessing="true">
             <match url="(.*)" />
             <conditions logicalGrouping="MatchAll">
               <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
               <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
             </conditions>
             <action type="Rewrite" url="/ticketsystemnew/{R:1}.html" />
           </rule>
         </rules>
       </rewrite>
     </system.webServer>
    </configuration>
    

      

    如果您觉得本文对你有用,不妨帮忙点个赞,或者在评论里给我一句赞美,小小成就都是今后继续为大家编写优质文章的动力,百小僧拜谢! 欢迎您持续关注我的博客:)
  • 相关阅读:
    租房子查询练习
    投票练习题
    多条件查询
    查询
    练习---新闻界面
    mysql增删改处理
    挖宝游戏
    mysql数据访问
    练习···表格
    类的使用
  • 原文地址:https://www.cnblogs.com/baiqian/p/15099758.html
Copyright © 2011-2022 走看看