• Rahul Rajoria

    (@rahul-rajoria)


    FIle:WEB.CONFIG

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
      <system.webServer>
        <rewrite>
          <rules>
    	<rules>
    		<clear />
    			<rule name=”uploads” stopProcessing=”true”>
    			<match url=”\wp-content\.*” />
    			<conditions logicalGrouping=”MatchAll” />
    	</rule>
                <rule name="wordpress" 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>
    -----------------------------
    solution
    
    <?xml version=”1.0″ encoding=”UTF-8″?>
    <configuration>
    <system.webServer>
    <rewrite>
    <rules>
    <clear />
    <rule name=”uploads” stopProcessing=”true”>
    <match url=”\wp-content\.*” />
    <conditions logicalGrouping=”MatchAll” />
    </rule>
    <rule name=”wordpress” patternSyntax=”Wildcard”>
    <match url=”*” />
    <conditions logicalGrouping=”MatchAll”>
    <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>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

  • The topic ‘[resolved]Windows to Linux server…file problem’ is closed to new replies.