windows server 2008 r2 iis7.5 使用笔记

发布日期:

开启url重写

安装 https://www.iis.net/downloads/microsoft/url-rewrite

wordpress重写规则 https://docs.microsoft.com/en-us/iis/application-frameworks/install-and-configure-php-applications-on-iis/install-wordpress-on-iis

<rewrite>
      <rules><rule name="Main Rule" 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="index.php"/></rule>
			<rule name="WordPress: https://zuoridangnian.com" patternSyntax="Wildcard">
				<match url="*"/>
					<conditions>
						<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
						<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
					</conditions>
				<action type="Rewrite" url="index.php"/>
			</rule></rules>
    </rewrite>

php 500解决办法

下载安装 微软常用运行库合集

wordpress发布文章错误:此响应不是合法的JSON响应

tls版本支持问题,下载 http://www.wosign.com/download/IISCrypto.exe,开启所有tls支持解决

参考 https://bbs.wosign.com/thread-1284-1-1.html

添加ssl证书

参考 https://blog.csdn.net/qq_34857250/article/details/54017863

https://www.wosign.com/Support/ssl-iis7-1.htm

文件404找不到原因

添加MIME类型

文件扩展名 .mp4 mime类型 video/mp4