PHP高级工程师|全栈工程师|WX: Aben_Ring

宝塔面板部署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>

posted @ 2020-06-18 19:14  懒牛拉车  阅读(495)  评论(0编辑  收藏  举报