• Resolved jalapenojuan

    (@jalapenojuan)


    Hi. I’m using simply-static to create a static version of https://nandu.world/blog/.

    In general settings I have ‘Relative Path’ for replacing urls, and ‘sblog’ for the path, and I’m deploying to local directory ~/public_html/sblog. Everything else is default settings.

    Everything works fine (e.g, https://nandu.world/sblog/2024/06/all-good-things-must-come-to-an-end/), except (and importantly), the main page. https://nandu.world/sblog/ which simply redirects to the original dynamic page. This is sblog/index.html:

    <!DOCTYPE html> <html> <head> <title>Redirecting...</title> <meta http-equiv="refresh" content="0;url=https://nandu.world/"> </head> <body> <script type="text/javascript"> window.location = "https://nandu.world/"; </script> <p>You are being redirected to <a >https://nandu.world/</a></p> </body> </html>

    Any help on how to fix this would be greatly appreciated.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author patrickposner

    (@patrickposner)

    Hey @jalapenojuan,

    thanks for reaching out!

    Take a look at your SEO plugin settings – this usually happens because of the “canonical URL”.

    Simply Static exports with a trailing slash at the end of the URL while the default canonical URL set by SEO plugins contains the URL without it (that’s why we create a redirect file).

    Thread Starter jalapenojuan

    (@jalapenojuan)

    Thanks for your response, Patrick.

    I don’t understand the issue, I don’t have any SEO plugin, and I have no idea what a “canonical url” is, but I shot a few shots in the dark, and for the record, what solved my problem was to change the ‘redirect method’ setting to ‘no redirect’ in Really Simple Security plugin’s SSL settings (and after exporting with Simply Static, I then set it back to ‘301 .htaccess redirect’.

    Thanks again!

    Juan

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.