>
产品文档 前端技术 后端技术 编程语言 数据库 人工智能 大数据云计算 运维技术 操作系统 数据结构与算法 Java C++语言 Python PHP

thinkphp5 iis 伪静态

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
	 <defaultDocument>
            <files>
                <clear />
                <!-- 设置默认首页 -->
                <add value="index.php" />
                <add value="index.html" />
                <add value="index.htm" />
            </files>
        </defaultDocument>
        <handlers>
            <remove name="ISAPI-dll" />
            <remove name="CGI-exe" />
            <add name="PHP5.6_FastCGI" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="D:\phpstudy_pro\Extensions\php\php5.6.9nts\php-cgi.exe" resourceType="Unspecified" />
        </handlers>
		<rewrite>
			<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>
		</rewrite>
    </system.webServer>
	
	

</configuration>

保存为web.config,放到public目录下即可。

相关标签 :

lan
config
php5

上一篇: thinkphp5 windows自身 iis php 配置。

下一篇: 会计凭证类型详解及选错解决方案