- Portal Home
- Knowledgebase
- Sử dụng .htaccess
- Hướng dẫn redirect http sang https cho wordpress
Categories
Categories
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>
Was this answer helpful?
Also Read
View: 14651
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: 11566
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: 10723
Để 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: 10260
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: 13369
Đố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
