title: Can I use redirect-ssl to enable SSL on IONOS hosting?
body: <p>Trying to redirect the http domain to https, as google pages shows the http link in the search results rather than the https one.</p>
  <p>Tried to use the redirect-ssl library with several different setups. Firstly <code>npm install redirect-ssl</code> with this in <code>nuxt.config.js</code></p>
  <pre class="lang-js prettyprint-override"><code>import redirectSSL from &quot;redirect-ssl&quot;;
  
  export default {
    serverMiddleware: [
      redirectSSL.create({
        enabled: process.env.NODE_ENV === 'production'
       }),
    ],
  }
  </code></pre>
  <p>and also tried just this after <code>npm install redirect-ssl</code> in <code>nuxt.config.js</code>:</p>
  <pre class="lang-js prettyprint-override"><code>export default {
    serverMiddleware: [&quot;redirect-ssl&quot;]
  }
  </code></pre>
  <p>I was wondering if maybe this doesn't work because it's a static site, but I'm new to development so am not sure.</p>