htaccess
  • Trang tạo htaccessredirect cực chất
  • 😁Robots.txt ignore only slug only namkhoa.net.vn (ok)
  • Sửa lỗi
  • Chuyển từ http đến https (ok) .htaccess
  • Cấu hình thành công htaccess chuyển từ http tới https Laravel 7 (ok)
  • Mẹo hướng dẫn cấu hình SSL trên localhost cho XAMPP full có cả xác thực ssl, https (ok)
  • How can I access from my mobile phone to my XAMPP? (ok)
  • Chuyển từ http tới https trong phpmyadmin (ok)
  • .htaccess redirect http to https namkhoa.net.vn (ok)
  • .htaccess subdirectory route phongkhamthienhoa.vn yii2 (ok)
  • Cấu hình tăng bộ nhớ upload file bằng php.ini, .htaccess stephencunnington.com (ok)
  • Mã thêm vào .htaccess sẽ lưu trữ hình ảnh trong bộ nhớ cache của họ trong một khoảng thời gian
  • Htaccess là gì? Cách cấu hình .htaccess căn bản DỄ DÀNG
  • File .htaccess là gì, Hướng dẫn cách dùng file .htaccess toàn tập
  • What is L in [QSA, L] in htaccess
Powered by GitBook
On this page

Was this helpful?

Cấu hình thành công htaccess chuyển từ http tới https Laravel 7 (ok)

C:\xampp\htdocs\auth.htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} !=on   
		RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

C:\xampp\apache\conf\extra\httpd-vhosts.conf

 <VirtualHost auth.com:80>
     DocumentRoot "C:\xampp\htdocs\auth\public"
     ServerName auth.com
     ServerAlias www.auth.com
 </VirtualHost>
 <VirtualHost auth.com:443>
     DocumentRoot "C:\xampp\htdocs\auth\public"
     ServerName auth.com
     ServerAlias www.auth.com
     SSLEngine on
     SSLCertificateFile "conf/ssl.crt/server.crt"
     SSLCertificateKeyFile "conf/ssl.key/server.key"
 </VirtualHost>
PreviousChuyển từ http đến https (ok) .htaccessNextMẹo hướng dẫn cấu hình SSL trên localhost cho XAMPP full có cả xác thực ssl, https (ok)

Last updated 4 years ago

Was this helpful?