部署基本流程

  • 安装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>

相关文章:

  • 2021-06-28
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-26
  • 2021-04-03
  • 2021-10-07
  • 2021-12-28
  • 2021-06-08
  • 2021-05-18
相关资源
相似解决方案