
师傅!把你的成功经验传给我啊!
还有.NET网站的话,那你只能用iis了,php用7.0的 mysql5.5就好
伪静态需要安装 rewrite_2.0_rtw_x64.msi
这里附一个微软官方地址 http://download.microsoft.com/download/6/7/D/67D80164-7DD0-48AF-86E3-DE7A182D6815/rewrite_2.0_rtw_x64.msi
如果是32位的系统,自己找x86的文件
下面代码复制到web.config里,这个本身就是完整的,其他的全删就行,如果有其他的代码,你需要看着对应粘贴
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="WPurls" enabled="true" 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/{R:0}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>用宝塔 win版即可
Ubuntu16.04 php7.25 mysql5.7 nginx1.14 灰常稳
看见写的字, 我有些想笑出声音
写了这么多字还拍照,直接手机登录发帖子不就好了嘛,不过赞一个,辛苦
windows2008+phpstudy 就好了 没必要非得IIS,除非还有其他.net站什么的