Support » Networking WordPress » Multisite Multidomain images not working after update

  • Hi,

    My sites used to work but now none of the pictures display across the different domains. I already read a few posts so Iยดve checked that the files exist on the server, the file permissions, and because it is hosted on Windows the web.config for the re-write rules according to the installation instructions (just fix them a bit as I think there were some parse errors, Iยดm including the information below). I have no clue why the images stopped working but any help would be greatly appreciated it. One of the sites URL is: http://tienda.transformacionpuebla.com/

    Below is the Web.config file I have and after it the one WP suggested which I think it has some issues:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
    		<directoryBrowse enabled="false" />
            <rewrite>
                <rules>
                    <rule name="WordPress Rule 1" stopProcessing="true">
                        <match url="^index\.php$" ignoreCase="false" />
                        <action type="None" />
                    </rule>
                    <rule name="WordPress Rule for Files" stopProcessing="true">
                        <match url="^files/(.+)" ignoreCase="false" />
                        <action type="Rewrite" url="wp-includes/ms-files.php?file={R:1}" appendQueryString="false" />
                    </rule>
                    <rule name="WordPress Rule 2" stopProcessing="true">
                        <match url="^wp-admin$" ignoreCase="false" />
                        <action type="Redirect" url="wp-admin/" redirectType="Permanent" />
                    </rule>
                    <rule name="WordPress Rule 3" stopProcessing="true">
                        <match url="^" ignoreCase="false" />
                        <conditions logicalGrouping="MatchAny">
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" />
                        </conditions>
                        <action type="None" />
                    </rule>
                    <rule name="WordPress Rule 4" stopProcessing="true">
                        <match url="^(wp-(content|admin|includes).*)" ignoreCase="false" />
                        <action type="Rewrite" url="/{R:1}" />
                    </rule>
                    <rule name="WordPress Rule 5" stopProcessing="true">
                        <match url="^([_0-9a-zA-Z-]+/)?(.*\.php)$" ignoreCase="false" />
                        <action type="Rewrite" url="/{R:2}" />
                    </rule>
                    <rule name="WordPress Rule 6" stopProcessing="true">
                        <match url="." ignoreCase="false" />
                        <action type="Rewrite" url="index.php" />
                    </rule>
                </rules>
            </rewrite>
    		<defaultDocument>
                <files>
                    <clear />
                    <add value="index.html" />
                    <add value="index.htm" />
                    <add value="default.html" />
                    <add value="default.htm" />
                    <add value="index.php" />
                    <add value="default.php" />
                    <add value="index.pl" />
                    <add value="default.pl" />
                    <add value="default.asp" />
                    <add value="default.aspx" />
                    <add value="index.asp" />
                    <add value="index.aspx" />
                    <add value="holding.html" />
                </files>
            </defaultDocument>
            <httpErrors errorMode="Detailed" />
        </system.webServer>
    </configuration>

    and below is what WP suggests but it seems the code used to generate it had some issues:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                <rules>
                    <rule name="WordPress Rule 1" stopProcessing="true">
                        <match url="^index\.php$" ignoreCase="false" />
                        <action type="None" />
                    </rule>';
    				if ( is_multisite() && get_site_option( 'ms_files_rewriting' ) ) {
    					 .= '
                    <rule name="WordPress Rule for Files" stopProcessing="true">
                        <match url="^files/(.+)" ignoreCase="false" />
                        <action type="Rewrite" url="C:\transformacionpuebla.com\wwwroot/wp-includes/ms-files.php?file={R:1}" appendQueryString="false" />
                    </rule>';
                    }
                     .= '
                    <rule name="WordPress Rule 2" stopProcessing="true">
                        <match url="^wp-admin$" ignoreCase="false" />
                        <action type="Redirect" url="wp-admin/" redirectType="Permanent" />
                    </rule>
                    <rule name="WordPress Rule 3" stopProcessing="true">
                        <match url="^" ignoreCase="false" />
                        <conditions logicalGrouping="MatchAny">
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" />
                        </conditions>
                        <action type="None" />
                    </rule>
                    <rule name="WordPress Rule 4" stopProcessing="true">
                        <match url="^(wp-(content|admin|includes).*)" ignoreCase="false" />
                        <action type="Rewrite" url="C:\transformacionpuebla.com\wwwroot/{R:1}" />
                    </rule>
                    <rule name="WordPress Rule 5" stopProcessing="true">
                        <match url="^([_0-9a-zA-Z-]+/)?(.*\.php)$" ignoreCase="false" />
                        <action type="Rewrite" url="C:\transformacionpuebla.com\wwwroot/{R:2}" />
                    </rule>
                    <rule name="WordPress Rule 6" stopProcessing="true">
                        <match url="." ignoreCase="false" />
                        <action type="Rewrite" url="index.php" />
                    </rule>
                </rules>
            </rewrite>
        </system.webServer>
    </configuration>
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Multisite Multidomain images not working after update’ is closed to new replies.