网站首页 » 默认分类 » windows web.config和htaccess配置方法

windows web.config和htaccess配置方法

September 5, 2016 默认分类
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="1">
                    <match url="^tu.action$" ignoreCase="false" />
                    <action type="Rewrite" url="/tu.html" appendQueryString="false" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>
<p>当访问tu.action文件时,会访问到tu.html<br/></p>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule tonew.action index.php
</IfModule>
# END WordPress
<p><br/></p>
Title - Artist
0:00