Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter michaelsrpersaud

    (@michaelsrpersaud)

    Thanks in advance.

    Thread Starter michaelsrpersaud

    (@michaelsrpersaud)

    Thanks Ipstenu.

    I will confess i looked at both these links before and did try the second one before but it didnt work. I tried just the rule 5 which was my rule 4 and after replacing it it WORKS!!!! ?? {sorry for the caps i’m just happy after almost 2 weeks of trying}

    here goes my full file in case anyone else has the same issue:

    =================

    <?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>
                    <rule name="WordPress Rule for Files" stopProcessing="true">
                        <match url="^([_0-9a-zA-Z-]+/)?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="^([_0-9a-zA-Z-]+/)?wp-admin$" ignoreCase="false" />
                        <action type="Redirect" url="{R:1}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="^[_0-9a-zA-Z-]+/(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-]+/)?([_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>
        </system.webServer>
    </configuration>
    Thread Starter michaelsrpersaud

    (@michaelsrpersaud)

    Thanks for responding.

    I have web.config. I was trying to use helicon ape to read the .htaccess but that crapped out too.

    currently the webconfig file has what was recommended by the wp-admin/network settings. If i can at least understand from an .htaccess point of view what needs to be done i can try to generate the web.cfg equivalent.

    <?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>
                    <rule name="WordPress Rule for Files" stopProcessing="true">
                        <match url="^([_0-9a-zA-Z-]+/)?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="^([_0-9a-zA-Z-]+/)?wp-admin$" ignoreCase="false" />
                        <action type="Redirect" url="{R:1}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="^([_0-9a-zA-Z-]+/)?(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-]+/)?([_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>
        </system.webServer>
    </configuration>
    Thread Starter michaelsrpersaud

    (@michaelsrpersaud)

    Also to mention in the 404 error it says the physical path is c:\<masked>\domain\xyz where xyz doesn’t exist because its in the database.

    I was reviewing a site and noticed the same set of links. What i’m interested in is “$kola.’-<file>.txt'”. They seem be symbolic links to configuration files. My concern is “WHY”? — Looks like a security hole to me. Can any one shed some light?

    Thread Starter michaelsrpersaud

    (@michaelsrpersaud)

    Thanks but its still questionable. CUrrently have BPS disabled. Found another plugin that was a possible culprit…”broken link checker”. When i enable BPS back this week we will know if that was the cause or not.

    Thread Starter michaelsrpersaud

    (@michaelsrpersaud)

    I disabled BPS on the site (it was only on the primary) then removed the .htaccess from the wp-admin but it still had the same issue. I tried blanking it using BPS but didn’t seem to help.

    I put everything back to the way it was and started troubleshooting with firebug but still no help.

    The last thing i did was stop logging in BPS.

    Last night safari stopped accessing the wp admin it would just start loading and nothing after. Chrome seemed to work well. This morning safari is back and Chrome is still going strong. So i don’t know for sure what it was except that logging is disabled and i don’t know if tomorrow would be as good as today but if it freaks again i’ll surely add to this thread again.

    Thanks for the help thus far and will marked resolved in a few days if the problem does not return.

    Thread Starter michaelsrpersaud

    (@michaelsrpersaud)

    RewriteRule ^(.+)$ /index.php/$1 [NC,L,QSA]
    oh yeah that broke the site too…..

Viewing 8 replies - 1 through 8 (of 8 total)