• Resolved dave.ooo

    (@crossy)


    Hi,

    The export seems to work relatively well for all child pages, but for some reason the main page (/index.html) keeps redirecting to the old URL.

    <!DOCTYPE html>
    <html>
    <head>
    <title>Redirecting...</title>
    <meta http-equiv="refresh" content="0;url=http://old-url.com/">
    </head>
    <body>
    <script type="text/javascript">
    window.location = "http://old-url.com/";
    </script>

    <p>You are being redirected to <a href="http://old-url.com/">http://old-url.com/</a></p>
    </body>
    </html>

    I’ve tried a dozen settings, changes, another homepage URL etc. but nothing seems to work. Any idea what’s going on and how to fix this?

    Best,
    Dave

Viewing 1 replies (of 1 total)
  • Plugin Author patrickposner

    (@patrickposner)

    Hey @crossy,

    thanks for reaching out!

    Take a close look at the URL and if there is a trailing slash at the end or not.
    This issue is quite common and happens because of your “canonical” tag.

    Let’s say your WP website runs at https://old-url.com (also configured in WP under Site URL), but the canonical tag (often added by SEO plugins) points to https://old-url.com/.

    This would result in the exact problem you’re facing right now, as the tag would tell Simply Static to add a 301 redirect instead of fetching the page’s content.

Viewing 1 replies (of 1 total)

The topic ‘Index.html keeps redirecting to old domain’ is closed to new replies.