duanke2503 2014-02-18 10:36
浏览 48

fatfree框架的web.config

I want to develop application using Fatfree Framework 3. My development environment is IIS express 7.5 on Windows XP. I can only access / route in the application. I can't access /about route in the example file. I try webroot/about and webroot/index.php/about. Both are not working. I also try web.config file created from .httaccess which is also not working. When I try to any route, I am getting 'No input file specified.' error. I am getting the same error for non existing routes also.

my web.config file (Generated from .httaccess file using online utility. I am getting same web.config file from all online utilities

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="rule 1g" stopProcessing="true">
<match url=".*"  />
<action type="Rewrite" url="/index.php"  appendQueryString="true" />
</rule>
<rule name="rule 2g" stopProcessing="true">
<match url=".*"  />
<action type="Rewrite" url="/-"  />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

Anyone please help me to setup Fatfree Framework on IIS.

  • 写回答

1条回答 默认 最新

  • dsp1836 2014-06-23 11:17
    关注

    i had the same problem using this framework in IIS 7.5 which i resolved using the config below (from https://github.com/finalcut/php_boilerplate ). Replacing your posted web.config with the below should resolve your problem. (you need to have 'URL Rewrite' installed on your server as well)

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="fatfree3" stopProcessing="true">
                    <match url="." ignoreCase="false" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="index.php" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
    

    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!