zoukankan      html  css  js  c++  java
  • 宝塔面板部署thinkcmf问题

    部署基本流程

    • 安装php + mysql + iis/apache/nginx
    • 数据库导入,代码迁移
    • 建立站点
    • 修改配置文件数据库用户名密码
    • 配置网站根目录到public
    • 参照手册,iis/apache/nginx 修改路由

    除了首页可以访问,其余页面无法访问

    配置的是iis服务器,因为没有修改路由,导致其他页面访问失败

    iis 配置,修改web_config/rewrite.config文件

    <rules>
    	<rule name="OrgPage" stopProcessing="true">
    		<match url="^(.*)$" />
    		<conditions logicalGrouping="MatchAll">
    		<add input="{HTTP_HOST}" pattern="^(.*)$" />
    		<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
    		<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
    		</conditions>
    		<action type="Rewrite" url="index.php/{R:1}" />
    	</rule>
    </rules>
    
    
  • 相关阅读:
    DFS,BFS算法
    浙江理工大学7月月赛
    矩阵快速幂
    数塔
    Bone Collector
    畅通工程
    敌兵布阵
    Tempter of the Bone
    Elevator
    Fibonacci Again
  • 原文地址:https://www.cnblogs.com/qq917937712/p/13159344.html
Copyright © 2011-2022 走看看