Redirect https://www?

All good :)

Was the apache web server, screwed a ssl Certificate. Redirect is included in the config of the apache, so
Redirect "/" "https://www.example.com/"

Now a bunch of web servers apache, nginx, certificate weighs in on the second. If you leave as well
Redirect "/" "https://www.example.com/" it will be a redirect loop.

As in my case to make rederiet on https://www ?
June 26th 19 at 14:14
2 answers
June 26th 19 at 14:16
Solution
Redirect to nginx:
return 301 https://$server_name$request_uri

well, or a trailing slash yourself get )) but correctly on nginx
Thanks, made through nginx - annette.Bayer13 commented on June 26th 19 at 14:19
June 26th 19 at 14:18
RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{HTTP_HOST} !^www\.(.*) [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{HTTP_HOST} !^www\.(.*) [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

Hotyach of course you Nuno will do in nginx for good

Find more questions by tags htaccess