首页 > Thinkphp里多个模块的伪静态怎么写urlrewrite规则

Thinkphp里多个模块的伪静态怎么写urlrewrite规则

目录结果:

www->application 项目目录
        ->home  前端口目录
        ->member 会员目录          
    ->member.php  会员入口文件
    ->index.php   网站首页入口文件

现在想配置会员模块的伪静态,我这里只有home模块的伪静态规则,不知道怎么添加会员模块的

            <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>

我想在浏览器离输入127.0.0.1/member/能访问member.php ,127.0.0.1/member/logout/访问 127.0.0.1/member.php/index/logout
请问上面这个的伪静态规则应该怎么修改,或者添加规则。

【热门文章】
【热门文章】