ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

URLs leading back to Homepage (suspect rewrite rules)

February 19, 2013 4:06pm

Subscribe [1]
  • #1 / Feb 19, 2013 4:06pm

    Wyman

    7 posts

    I am having a problem where all urls not generated by expression engine are directing to index.php

    I suspect that this has to do with the rewrite rules, but exceptions have been set up. Following is my web.config

    I am trying to get to root/docs/somefile.pdf and I know that the file structure is correct. Would anyone with more experiance with rewrite mind taking a look at my exceptions and rewrite?

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                <rules>
                    <rule name="Imported Rule 1" stopProcessing="true">
                        <match url="^(.*)$" ignoreCase="false" >
                        <conditions logicalGrouping="MatchAll">
                            <add input="{R:1}" matchType="Pattern" pattern="^(css|js|ico|swf|assets|images|doc|xlsx|pdf|system|tools|themes|index\\\\.php|admin\\\\.php)" ignoreCase="true" negate="true" >
                        </conditions>
                        <action type="Rewrite" url="/index.php/{R:1}" >
                    </rule>
                </rules>
            </rewrite>
            <staticContent>
                <remove fileExtensi >
                <mimeMap fileExtensi mimeType="application/javascript" >
            </staticContent>
        </system.webServer>
    </configuration>

     

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases