CubeCart version 6 has had little testing on Windows operating system using the IIS web server. We recommend Linux or Unix operating systems with Apache webserver.
If you absolutely must use Windows with IIS the code below will get get URL rewriting working.
Create a file called Web.config with the following content (replacing the path in red as necessary) and upload it to your root public html folder.
For CubeCart 6.4.0 and above:
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed"/>
<rewrite>
<rules>
<rule name="rule 1R" stopProcessing="true">
<match url="^store/(.*)?$" />
<action type="Rewrite" url="/store/index.php?seo_path={R:1}"
appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
For CubeCart 6.2.9 or lower:
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed"/>
<rewrite>
<rules>
<rule name="rule 1R" stopProcessing="true">
<match url="^store/(.*).html?$" />
<action type="Rewrite" url="/store/index.php?seo_path={R:1}"
appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Comments
1 comment
Sorry, is that a complete script? I see just two lanes. But it doesn't work. I tried some possibilities nothing works. I have my shop in direct folder, without store in front of. Running on Win Server 2016 IIS10. Thanks for help. Radim
Please sign in to leave a comment.