Hi Jeremy,

Nothing in the app debug logs. However I looked at the IIS server logs. All
requests to the uploaded images are being routed through index.php. I have
used the rewrite rules from here -
http://book.cakephp.org/1.3/view/1636/URL-Rewrites-on-IIS7-Windows-hosts

I am not sure if I understand this right but I think that based on
'Redirect static resources' rule requests to images must just pass through.
However I see that they are going through index.php.

Here's the web.config -

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Redirect static resources"
stopProcessing="true">
                    <match url="^(ico|img|css|files|js)(.*)$"/>
                    <action type="Rewrite" url="app/webroot/{R:1}{R:2}"
appendQueryString="false"/>
                </rule>
                <rule name="Imported Rule 1" stopProcessing="true">
                    <match url="^(.*)$" 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="index.php?url={R:1}"
appendQueryString="true"/>
                </rule>
                <rule name="Imported Rule 2" stopProcessing="true">
                    <match url="^$" ignoreCase="false"/>
                    <action type="Rewrite" url="/"/>
                </rule>
                <rule name="Imported Rule 3" stopProcessing="true">
                    <match url="(.*)" ignoreCase="false"/>
                    <action type="Rewrite" url="/{R:1}"/>
                </rule>
                <rule name="Imported Rule 4" stopProcessing="true">
                    <match url="^(.*)$" 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="index.php?url={R:1}"
appendQueryString="true"/>
                </rule>
            </rules>
        </rewrite>
        <!--<urlCompression doStaticCompression="false"/>-->
    </system.webServer>
</configuration>


Please do let me know if there is any change I must make in this file.

thanks again very much.

regards,
John

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to