Playback starts YouTube’s embedded player (privacy-enhanced mode).
How To Redirect to HTTPS with .htaccess
ChannelTony Teaches TechDescription from the creator
Learn how to redirect your website traffic from HTTP to HTTPS with the .htacces file. If you have ssh or FTP access to your Apache web server, you can modify your .htaccess file with a permanent 301 redirect to send all traffic to the HTTPS version of your website.
Code snippet:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ example.com/$1 [R=301,L,NE]
Header always set Content-Security-Policy "upgrade-insecure-requests;"
Find more at tonyteaches.tech
#https #htaccess #apache
Code snippet:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ example.com/$1 [R=301,L,NE]
Header always set Content-Security-Policy "upgrade-insecure-requests;"
Find more at tonyteaches.tech
#https #htaccess #apache
About this tutorial
Tony Teaches Tech published this 3:20 video tutorial on September 26, 2020. It has been watched 19,482 times on YouTube.
- Channel
- Tony Teaches Tech
- Category
- Howto & Style
- Duration
- 3:20
- Published
- September 26, 2020
- Views
- 19,482
- Likes
- 239
Tags
Share
This tutorial in other languages
- FRComment faire pour rediriger vers HTTPS avec .htaccess
- ESCómo redirigir a HTTPS con .htaccess
- PTComo redirecionar para HTTPS com .htaccess
- ITCome reindirizzare a HTTPS con .htaccess
- DEHow To Redirect zu HTTPS bei .htaccess
- NLHoe om te buigen naar HTTPS met .htaccess
- RUКак перенаправить к HTTPS с .htaccess
- PLJak przekierować do HTTPS z .htaccess
- JAどのようにリダイレクトするHTTPSへの.htaccessで
- ARكيفية إعادة توجيه إلى HTTPS مع هتكس
- HIकैसे करने के लिए पुनर्निर्देशन HTTPS के लिए .htaccess के साथ
- IDCara Redirect ke HTTPS dengan .htaccess