开发者

How do I get Zend working with IIS 7.0 (rewrite module v2) and windows 2008?

My website seems to only load the index page regardless of what path it is given.

Does anyone know of any known issues with getting Zend working correctly with IIS 7.0 (rewrite module v2) and windows 2008?

I'm getting desperate with this and can't seen to find any suitable solutions?

I can put a phpinfo() screen shot on if it helps?

The following information is set in phpinfo()

_SERVER["HTTP_X_ORIGINAL_URL"] /prices开发者_JAVA技巧/ 

The rewrite seems to work in that sense it always hits the index.php page just sometimes gives a 404 on the homepage and doesnt load the correct views.


This was an issue with the .htaccess file not converting properly from the import function on the modrewrite v2 in IIS.

This is the correct standard rewrite config:

<rewrite>
            <rules>
                <rule name="Zend Standard Rule" 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?route={R:1}" appendQueryString="true" />
                </rule>
            </rules>
        </rewrite>

Hope this helps someone

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜