- Notifications
You must be signed in to change notification settings - Fork476
Open
Description
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 CoreMapRequestHandlerStaticFile0x80070002URL request: http://localhost:81/site/public/page1Path: C:\inetpub\wwwroot\site\public\page1Thank you!!!
Metadata
Metadata
Assignees
Labels
No labels