Redirect problem
-
Hi, I’m using a plugin to duplicate a post every day, “Duplicate Page or Post” plugin, ver 1.1.6.
The duplicate post has the same slug as the original post, with the addition (from WordPress core) of -2. To distinguish the two posts.
Having worked fine for the first two duplicates, I now have a problem.
Opening the post will redirect you to the homepage from your plugin (redirect 301), if you are not logged in.
If you are logged in, the post is displayed correctly, without redirects.How come I have this problem?
Edit. I just noticed that the post was duplicated twice today. one post was kept as a “draft”, the other post was published. I deleted the “draft” post, cleared the cache, and the problem is solved.
But how come I had this problem only for non-logged in users? I also tried clearing the cache, but I always had redirects. As if it were a 404 page with redirect to the homepage (as per your plugin settings)Thanks for support.
This is the HTTP Headers:
>>> https://www.mywebsite.com/slug-my-post-2-2-2/ > -------------------------------------------- > 301 Moved Permanently > -------------------------------------------- Status: 301 Moved Permanently Code: 301 Content-Type: text/html; charset=UTF-8 Expires: Wed, 11 Jan 1984 05:00:00 GMT Cache-Control: no-cache, must-revalidate, max-age=0 X-Redirect-By: Rank Math SEO Location: https://www.mywebsite.com/ X-Litespeed-Tag: 080_HTTP.404,080_HTTP.301,080_404,080_URL.e4710d489537ab25faf62f785b63a336,080_ X-LiteSpeed-Cache: miss Content-Length: 0 Date: Sat, 24 Apr 2021 18:26:33 GMT Server: LiteSpeed Alt-Svc: quic=":443"; ma=2592000; v="43,46", h3-Q043=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-25=":443"; ma=2592000, h3-27=":443"; ma=2592000 Connection: close >>> https://www.mywebsite.com/ > -------------------------------------------- > 200 OK > -------------------------------------------- Status: 200 OK Code: 200 content-type: text/html; charset=UTF-8 Link: <https://www.mywebsite.com/>; rel=shortlink vary: Accept-Encoding server: LiteSpeed alt-svc: quic=":443"; ma=2592000; v="43,46", h3-Q043=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-25=":443"; ma=2592000, h3-27=":443"; ma=2592000 X-LiteSpeed-Cache: hit Date: Sat, 24 Apr 2021 18:26:33 GMT Connection: close
- The topic ‘Redirect problem’ is closed to new replies.