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>
    

    评论

报告相同问题?

悬赏问题

  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?