The below code when added to an htaccess file will automatically redirect any traffic destined for http: to https:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
The below code when added to an htaccess file will automatically redirect any traffic destined for http: to https:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
42 用戶發現這個有用 (1 投票)
熱門文章
We use cookies to learn where you struggle when you're navigating our website and them for your future visit, learn more about cookies in our terms of use