• Resolved turbodb

    (@turbodb)


    Did Really Simple SSL used to redirect www. -> domain.com, but no longer does? I seem to recall configuring this at one point, but I don’t see it in the admin page anymore.

    Thanks,
    Dan

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Hi @turbodb,

    No, redirecting from www to non www or the other way is already handled by WordPress core, so this was never part of Really Simple SSL. The plugin handles the redirect to https in the fastest, most secure way.

    Here are some redirect .htaccess examples you could use:
    https://really-simple-ssl.com/knowledge-base/avoid-landing-page-redirects/

    Hope this helps.

    Thread Starter turbodb

    (@turbodb)

    Thanks.

    Just for some background – the reason I asked is that I feel like my site used to redirect from www. to domain., but isn’t anymore. And, now that I’m using a caching plugin, I really want everything going to the same cache, rather than building up two (essentially identical) caches.

    I’m running in Azure (on Windows), so can’t use the .htaccess. I guess I’ll need to figure out how to do this in IIS. You wouldn’t know by chance would you?

    Cheers,
    Dan

    Plugin Author Mark

    (@markwolters)

    Hi @turbodb,

    you should be able to do this in your web.config file, with a rule similar to this:

    <rule name="Force non-WWW" enabled="true" stopProcessing="true">
        <match url="(.*)" />
        <conditions logicalGrouping="MatchAny">
            <add input="{HTTP_HOST}" pattern="^(www\.)(.*)$" />
        </conditions>
        <action type="Redirect" url="https://{C:2}/{R:1}" appendQueryString="true" redirectType="Permanent" />
    </rule>

    Also see https://stackoverflow.com/questions/17714732/web-config-redirect-non-www-to-www for some more examples. These redirect non-www to www but can be switched around.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Redirecting WWW’ is closed to new replies.