I’ve done some checks, and tried to list what we know of the issue:
– When I test the redirect, both posts are redirected to https. The LinkedIn debugger states that there’s an error in the redirect trail. This seems only to happen on https posts.
– The command curl -I https://domain.com results in a 500 error as well. But when loaded in a browser this does not happen.
– You had the issue also with Really Simple SSL deactivated, and with all .htaccess edits from Really Simple SSL removed as well.
– I do not see a difference in response on CURL from both URL’s. Both respond with a 500 when requested over https (in curl and in the LinkedIn debugger)
– If I remove the slash at the end, the 500 is gone.
So the 500 response only occurs when there’s no redirect, and not in browsers.
Even when I give CURL a user agent which should run like a browser, like this:
curl -H "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36" https://kinamedia.se/2022/11/05/kina-vagrar-prata-klimat-med-usa-infor-cop27/
I get the “There has been a critical error on your website” in the resulting html. In case of such a response, the consequence is that the metatags are not there as well.
Based on the above, it looks like there’s a PHP error occurring in some situations, which should show up in the PHP logs on your server. If you don’t have direct access to those logs, you can enable debugging by adding
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
to your wp-config.php.
Then run the a curl command in the terminal, or running the LinkedIn debugger
curl -I https://domain.com/path
If the response is 500, you should be able to find a php error in the logs.
If you post the log here, or email it to us at support(at)really-simple-ssl.com we can check if we can see what’s going on.