Viewing 5 replies - 1 through 5 (of 5 total)
  • Please share a link to (the actual site here so we can review).

    Also please note that the rewrite rules for IIS are not the same as those for Apache.

    https://codex.www.ads-software.com/Using_Permalinks

    Thread Starter elindydotcom

    (@elindydotcom)

    Hi:

    The site name is https://www.ncubesoftware.com.

    Thanks!

    -eLindy

    PS: Thanks for the link. I believe I have all those entries in the .htaccess and web.config file set. If you need me to attach them let me know.

    Hi,

    With IIS, you will need URL Rewrite module. Place the following code in web.config of your website and have a try. It will force HTTPS for ALL resources (using 301 Permanent Redirect):

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                <rules>
                    <clear />
                    <rule name="Redirect to https" stopProcessing="true">
                        <match url="(.*)" />
                        <conditions>
                            <add input="{HTTPS}" pattern="off" ignoreCase="true" />
                        </conditions>
                        <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
                    </rule>
                </rules>
            </rewrite>
        </system.webServer>
    </configuration>

    Hope that helps.

    Thanks,

    Thread Starter elindydotcom

    (@elindydotcom)

    Hi Accuwebhosting:

    Thanks very much for the info. One question – does this replace all the WordPress url-rewrite rules already in the config.web file or is this additive to them. If it is additive, I assume it goes above all the existing WordPress rules?

    Thanks!

    Hi,

    Yes, it will replace all existing WordPress URL-rewrite rules. The best approach to test these rules is to copy existing web.config file and rename the original file like web.config.backup.

    Now, paste these rules in duplicate web.config file (do not forget to remove existing rules) and rename it with web.config.

    Thanks,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘www.mysite.com to https://www.mysite.com’ is closed to new replies.