nopCommerce stopped working from subfolder after moving Wordpress to root

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 years ago
Hi,

Can you try this instead?
The trick is to prevent the /shop url and everything below from being rewritten to index.php.



<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <staticContent>
      <remove fileExtension=".svg"/>
      <mimeMap fileExtension=".svg" mimeType="image/svg+xml"/>
    </staticContent>
    <rewrite>
      <rules>
      <rule name="nopCommerce" enabled="true" stopProcessing="true">
          <match url="^shop/.*" />
          <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
          </conditions>
          <action type="None" />
      </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>
8 years ago
any additional ideas or troubleshooting help to offer?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.