[wp-trac] [WordPress Trac] #36506: Duplicate directives in web.config after WordPress 4.5 installation on Windows
WordPress Trac
noreply at wordpress.org
Wed Apr 13 08:46:14 UTC 2016
#36506: Duplicate directives in web.config after WordPress 4.5 installation on
Windows
--------------------------+-----------------------------
Reporter: oneumyvakin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.5
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
*DESCRIPTION*
Duplicate directives in web.config after WordPress 4.5 installation on
Windows
*ENVIRONMENT*
- WordPress 4.5
- Windows 2012 R2
- PHP 5.4.45
*IMPACT*
- WordPress can't be used
*STEPS*
# Extract wordpress-4.5.zip archive into domain's root or sub-folder
# Start installation procedure
# Installation wizard finished without any error
# Try to open login page or home page
*ACTUAL RESULT*
Error 500
*EXPECTED RESULT*
- No such error
*ROOT CAUSE*
IIS error:
{{{
\\?\<path>\httpdocs\wordpress\web.config ( 6) :Cannot add duplicate
collection entry of type 'rule' with unique key attribute 'name' set to
'WordPress: http://test.plesk.ru/wordpress'
}}}
Content of web.config:
{{{
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules><rule name="WordPress: http://test3.a10-52-58-17.qa.plesk.ru"
patternSyntax="Wildcard"><match url="*"/><conditions><add
input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/><add
input="{REQUEST_FILENAME}" matchType="IsDirectory"
negate="true"/></conditions><action type="Rewrite"
url="index.php"/></rule>
<rule name="WordPress:
http://test3.a10-52-58-17.qa.plesk.ru" patternSyntax="Wildcard">
<match url="*"/>
<conditions>
<add
input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add
input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="index.php"/>
</rule></rules>
</rewrite>
</system.webServer>
</configuration>
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36506>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list