• Hey. I thought everything was working the whole time. But now I notice that the redirect only works when the page is accessed with https://www.meineDomain.com. If I call only mydomain.com, everyone comes in.
    Any idea? I’m redirecting to a PHP script by itself that then redirects the visitors.
    The real URL of the WordPress site is then in the future also only mydomain.com

Viewing 1 replies (of 1 total)
  • Plugin Author Peter Hardy-vanDoorn

    (@petervandoorn)

    Hi @cjk2

    The redirection only runs when the server is asked to deliver the page – as far as I understand it, most servers redirect from domain.com to www.domain.com (or vice versa) prior to this via either your DNS server or your web server, so it shouldn’t make any difference.

    The only thing I can think of off the top of my head is that your hosting company is employing some form of server-side caching which is misconfigured – ie, it’s caching the non-www address but not the www address.

    In the first instance, I would suggest that you investigate that and, if possible, disable any server-side caching so that you can test this hypothesis.

    Also, you should ask your hosting company to check that the www to non-www redirection is working properly.

    Let me know how you get on.

    Peter

Viewing 1 replies (of 1 total)
  • The topic ‘works only with www’ is closed to new replies.