Welcome Guest, Not a member yet? Register   Sign In
IIS support
#3

(This post was last modified: 07-25-2016, 08:29 PM by ibraheem_ghazi.)

(07-25-2016, 07:56 PM)kilishan Wrote: If you could provide one, we'll be happy to. It's been years since I've used IIS and never got good at it's config settings. In other words - please submit a pull request.
here is the file i attached to each project i uploaded and it's work perfect on CI3
at the bottom i added woff2 mime manually its not required
Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.web>
  <!--<customErrors mode="Off"/>-->
    <httpRuntime maxRequestLength="2147483647" />
  </system.web>
    <system.webServer>
      <security>
  <requestFiltering>
    <requestLimits maxAllowedContentLength="2147483647"/>
    </requestFiltering>
    </security>
        <rewrite>
            <rules>
                <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>
            </rules>
        </rewrite>
        <staticContent>
    <remove fileExtension=".woff2" />
    <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
  </staticContent>
  

    </system.webServer>

</configuration>

btw as we are in same topic i would suggest for htaccess this file which does not require the ReWrite Base

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
Reply


Messages In This Thread
IIS support - by ibraheem_ghazi - 07-25-2016, 05:51 PM
RE: IIS support - by kilishan - 07-25-2016, 07:56 PM
RE: IIS support - by ibraheem_ghazi - 07-25-2016, 08:28 PM
RE: IIS support - by ciadmin - 07-25-2016, 10:00 PM
RE: IIS support - by ibraheem_ghazi - 07-26-2016, 12:57 AM
RE: IIS support - by mightyted - 06-06-2019, 09:03 AM
RE: IIS support - by stlake2011 - 05-31-2021, 07:00 AM
RE: IIS support - by timexpeachtree - 09-01-2021, 02:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB