I
I
it_pear_yurec2021-02-13 14:57:17
Apache HTTP Server
it_pear_yurec, 2021-02-13 14:57:17

How to redirect nuxt site to https?

There is a script for the server on Apache, which allows, when reloading the site on nuxt, it does not crash, but simply reboots

<ifModule mod_rewrite.c>
    RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.html$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.html [L]
</ifModule>


but here's the problem, how to correct all this so that it all switches only to the https protocol?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question