Ok so lets start it here.
the issue is that if I try to access
www.nck.de or any subpage it give me an error with the certificate. which is normal, since the certificate does not work with
www.nck.de only with nck.de non-www version. so I need to redirect EVERY request from
www.nck.de to nck.de, so it does not resolve
https://www.nck.de, since that version does not work.
I have an SSL certificate valid for nck.de without the www. I do use wordpress and its set to use the non-www version of my page. the server is centOS and runs the newest PLESK version. I set the domain nck.de to non-www there as well, so its the same as in wordpress settings.
I have tried various htaccess and ngix solutions I have found on different forums, but non worked so far.
my htaccess and ngix are reset now to standard.
current htaccess content is:
# BEGIN rlrssslReallySimpleSSL rsssl_version[2.5.20]
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^(.*)$
https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>
# END rlrssslReallySimpleSSL
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# BEGIN MainWP
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^wp-content/plugins/mainwp-child/(.*)$ /wp-content/plugins/THIS_PLUGIN_DOES_NOT_EXIST [QSA,L]
</IfModule>
# END MainWP