- Trang khách hàng
 - Câu hỏi thường gặp
 - Sử dụng .htaccess
 - Hướng dẫn redirect http sang https cho wordpress
 
Thư mục
Thư mục
Hướng dẫn redirect http sang https cho wordpress
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
hoặc
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Câu trả lời này hữu ích?
Bài viết liên quan
			View: 14575
			Các máy chủ web của SuperHost đều được hỗ trợ mod_rewrite. Vì vậy quý khách có thể sử dụng tập...
			View: 11503
			Khi bạn có kế hoạch chuyển đổi từ http://superhost.vn/ sang http://superhost.vn/abc mà không muốn...
			View: 10643
			Để tránh trường hợp bị tốn băng thông do một site khác sử dụng trực tiếp các tập tin dạng hình...
			View: 10156
			Ví dụ trong trường hợp bạn muốn gõ http://webmin.superhost.vn và trình duyệt sẽ hiểu là...
			View: 13278
			Đối với mã nguồn Xenforo, thông thường bạn có thể dùng chứng thực với PHP để tạo lớp bảo mật...
Powered by WHMCompleteSolution
