Redirecting to SSL-protected connection

Prerequisite

In order to make sure that your website is delivered without showing a security warning please make sure to add your domain to the GWDG SSL certificate.

Redirection

The redirection can be configured by adding additional rules to the .htaccess-file, which is processed by the webserver on every request.

A working configuration is shown in this example:

# GWDG SSL REDIRECTION
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI}
# END GWDG SSL REDIRECTION

Wordpress with SSL

  1. Please install and activate the plugin “SSL Insecure Content Fixer”.
  2. Under the settings of the plugin “SSL Insecure Content Fixer” please select the item “Simple”.
  3. Under “HTTPS detection” please select HTTP_X_FORWARDED_PROTO (eg load balancer, reverse proxy, NginX)
  4. Now under Wordpress Address (URL) and Site Address (URL) you can specify the blog URL with https under the general settings of Wordpress.