Paul Groves wrote:
Redirect permanent / https://www.mysite.com/
or
RewriteEngine on RewriteCond %{SERVER_NAME} =www.mysite.com RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
So these are two different ways of performing a redirect.
There is on minor differences, but it probably don't matter much. The latter will _only_ redirect when hostname matches "www.site.com" whereas the former will redirect everything. They will both produce a 301 redirect.
So which is better? What are the pros an cons of each method? Why does certbot choose to use the Rewrite engine?
It's either habit or because hostname is important. -- Per Jessen, Zürich (9.8°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org