Post by zlobec » Sun Jan 15, 2017 11:34 pm

Hi,

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>
Could anybody check if this is correct or should I change something? Thank you!

Newbie

Posts

Joined
Tue Nov 17, 2015 11:52 pm
Who is online

Users browsing this forum: No registered users and 11 guests