Office Hours
Day Hours (GMT)
Bank Holidays Closed
Monday 9:00 - 17:30
Tuesday 9:00 - 17:30
Wednesday 9:00 - 17:30
Thursday 9:00 - 17:30
Friday 9:00 - 17:30
Saturday Closed
Sunday Closed
Knowledgebase: Hosting Issues
IIS Rewrite Rules to prevent page not found errors
Posted by Al Brookbanks on 25 May 2016 05:42 PM

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 absolutelty have to 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 nessesary) and upload it to your root public html folder;

<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>


©2017 CubeCart Limited. All rights reserved. CubeCart Limited is a company registered in England & Wales under number 5323904. VAT Registration Number GB886451190.