Page 1 of 1

Extension and IIS7 URL rewrite

Posted: Sat Nov 15, 2014 9:34 pm
by Tecwar
hi, i have a problem with the app.php
with: app.php/extname = work
with: /extname = 404 error

have some code for web.config found

Code: Select all

<rewrite>
        <rules>
		<rule name="extname" stopProcessing="true">
			<match url="extname" />
			<action type="Rewrite" url="app.php/extname" appendQueryString="true" />
		</rule>
	</rules>
</rewrite>
but no loading images,css and js form template include.

can some help me
thx

Re: Extension and IIS7 URL rewrite

Posted: Sun Nov 16, 2014 10:47 am
by Tecwar
hi,

have found solution^^ is work

Code: Select all

    <rewrite>
        <rules>
            <rule name="ext rules" stopProcessing="true">
                <match url="^(.*)$" ignoreCase="true" />
                <conditions>
                    <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="app.php"  appendQueryString="true" />
            </rule>
        </rules>
    </rewrite>