307 Star 1.5K Fork 331

GVPThinkPHP / thinkphp

 / 详情

tp 可以部署到子目录吗?

待办的
创建于  
2021-03-22 13:24

我win10,iis+php,部署到子目录,配置伪静态访问报错

web.config 配置

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="auto-address" stopProcessing="true">
                    <match url="^auto-address/(.*)$" ignoreCase="false" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="auto-address/index.php/{R:1}" appendQueryString="true" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

报错截图

http://127.0.0.1/auto-address/detailParse/%E6%B2%B3%E5%8C%97%E7%9C%81%E9%82%A2%E5%8F%B0%E5%B8%82%E4%BB%BB%E5%8E%BF%E6%9F%90%E6%9F%90%E8%B7%AF%E5%B9%B8%E7%A6%8F%E9%87%8C%E5%B0%8F%E5%8C%BA5%E5%8F%B7%E6%A5%BC1%E5%8D%95%E5%85%831111

评论 (1)

kis龍 创建了任务
kis龍 关联仓库设置为ThinkPHP/thinkphp
展开全部操作日志

是路径不支持中文,支持纯英文

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
4844697 pifeifei 1578975575
PHP
1
https://gitee.com/liu21st/thinkphp.git
git@gitee.com:liu21st/thinkphp.git
liu21st
thinkphp
thinkphp

搜索帮助