I am forced to use a Windows server for the OpenCart 2.3.0.2 installation. I'm not a Windows expert so I've been having some trouble with the SEO configuration of the Web.Config file for the Windows server.
I've come to this result that works:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="sitemap" stopProcessing="true">
<match url="^sitemap.xml$"/>
<action type="Rewrite" url="/index.php?route=extension/feed/google_sitemap"/>
</rule>
<rule name="googlebase" stopProcessing="true">
<match url="^googlebase.xml$"/>
<action type="Rewrite" url="/index.php?route=extension/feed/google_base"/>
</rule>
<rule name="systemDownload" stopProcessing="true">
<match url="^system/download/(.*)"/>
<action type="Rewrite" url="/index.php?route=error/not_found"/>
</rule>
<rule name="opencart" stopProcessing="true">
<match url="^([^?]*)"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
<add input="{REQUEST_URI}" pattern=".*\.(ico|gif|jpg|jpeg|png|js|css)" negate="true"/>
</conditions>
<action type="Rewrite" url="index.php?_route_={R:1}" appendQueryString="true"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>