8000 IIS web.config Error 404 · Issue #247 · panique/mini · GitHub
[go: up one dir, main page]

Skip to content

IIS web.config Error 404 #247

Open
Open

Description

@aliciacbu

Hi everybody!

My web server is IIS 7.5 and I'm trying to convert .htaccess files to web.config but I have a problem with the second web.config (in /public). The links in the menu get an Error 404.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
       <rewrite>
          <rules>
             <rule name="Main Rule" stopProcessing="true">
                 <match url="^(.+)$" ignoreCase="false" />
                  <conditions logicalGrouping="MatchAll">
                    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
                   <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
                    </conditions>
                  <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="true" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

The web.config file in / works well:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
       <rewrite>
		  <rules>
		     <rule name="public" stopProcessing="true">
                            <match url="^(.*)" ignoreCase="false" />
                             <action type="Rewrite" url="public/{R:1}" />
                      </rule>
		  </rules>
         </rewrite>
    </system.webServer>
</configuration>

Can someone help me with this or with the configuration for URL in config.php?

Error details:

IIS Web Core
MapRequestHandler
StaticFile
0x80070002

URL request: http://localhost:81/site/public/page1
Path: C:\inetpub\wwwroot\site\public\page1

Thank you!!!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0