
{"id":6736,"date":"2019-06-28T02:57:48","date_gmt":"2019-06-28T02:57:48","guid":{"rendered":"http:\/\/tapchicntt.com\/?p=6736"},"modified":"2023-07-28T11:42:46","modified_gmt":"2023-07-28T04:42:46","slug":"huong-dan-chuyen-huong-tu-http-sang-https-trong-wordpress","status":"publish","type":"post","link":"https:\/\/tapchicntt.com\/huong-dan-chuyen-huong-tu-http-sang-https-trong-wordpress\/","title":{"rendered":"[WordPress] H\u01b0\u1edbng d\u1eabn chuy\u1ec3n h\u01b0\u1edbng t\u1eeb HTTP sang HTTPS trong WordPress"},"content":{"rendered":"\n<p>Ch\u00e0o c\u00e1c b\u1ea1n, sau khi  c\u00e1c b\u1ea1n \u0111\u00e3 c\u00e0i \u0111\u1eb7t giao th\u1ee9c https cho website c\u1ee7a c\u00e1c b\u1ea1n. \u0110\u1ec3 chuy\u1ec3n h\u01b0\u1edbng t\u1ea5t c\u1ea3 \u0111\u01b0\u1eddng link khi truy c\u1eadp website trong WordPress t\u1eeb giao th\u1ee9c http sang giao th\u1ee9c https, c\u00e1c b\u1ea1n th\u1ef1c hi\u1ec7n khi b\u1ea1n th\u1ef1c hi\u1ec7n c\u00e1c b\u01b0\u1edbc nh\u01b0 sau:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Chu\u1ea9n b\u1ecb trong C\u00e0i \u0110\u1eb7t WordPress<\/h3>\n\n\n\n<p>1. \u0110\u0103ng nh\u1eadp v\u00e0o WordPress<\/p>\n\n\n\n<p>2. V\u00e0o menu Setting ch\u1ecdn General. thay \u0111\u1ed5i 2 m\u1ee5c sau:<br>&#8211; <strong>WordPress Address (URL):<\/strong><br>&#8211;<strong> Site Address (URL):<\/strong><br>C\u1eadp nh\u1eadt t\u1eeb  giao th\u1ee9c <strong>http<\/strong> th\u00e0nh <strong>https<\/strong><\/p>\n\n\n\n<p>L\u01b0u khi \u0111\u00e3 ho\u00e0n th\u00e0nh.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"589\" height=\"120\" src=\"http:\/\/tapchicntt.com\/wp-content\/uploads\/2019\/06\/huong-dan-chuyen-huong-tu-http-sang-https-trong-wordpress.jpg\" alt=\"\" class=\"wp-image-6740\" srcset=\"https:\/\/tapchicntt.com\/wp-content\/uploads\/2019\/06\/huong-dan-chuyen-huong-tu-http-sang-https-trong-wordpress.jpg 589w, https:\/\/tapchicntt.com\/wp-content\/uploads\/2019\/06\/huong-dan-chuyen-huong-tu-http-sang-https-trong-wordpress-300x61.jpg 300w\" sizes=\"auto, (max-width: 589px) 100vw, 589px\" \/><\/figure>\n<\/div>\n\n\n<p>N\u1ebfu web site c\u1ee7a b\u1ea1n s\u1eed d\u1ee5ng host Linux, c\u00e1c b\u1ea1n c\u1eadp nh\u1eadt file .htaccess nh\u01b0 sau:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n&lt;IfModule mod_rewrite.c&gt;\nRewriteEngine On\nRewriteBase \/\n\n# BEGIN WordPress\nRewriteRule ^index\\.php$ - &#x5B;L]\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteRule . \/index.php &#x5B;L]\n&lt;\/IfModule&gt;\n<\/pre><\/div>\n\n\n<p>Ch\u00e8n th\u00eam \u0111o\u1ea1n sau v\u00e0o sau <strong>RewriteBase \/<\/strong> :<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nRewriteCond %{HTTPS} !=on\nRewriteRule ^ https:\/\/%{HTTP_HOST}%{REQUEST_URI} &#x5B;L,R=301] \n<\/pre><\/div>\n\n\n<p> File ho\u00e0n th\u00e0nh nh\u01b0 sau: <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n&lt;IfModule mod_rewrite.c&gt;\nRewriteEngine On\nRewriteBase \/\n&lt;em&gt;\nRewriteCond %{HTTPS} !=on\nRewriteRule ^ https:\/\/%{HTTP_HOST}%{REQUEST_URI} &#x5B;L,R=301]\n&lt;\/em&gt;\n\n# BEGIN WordPress\nRewriteRule ^index\\.php$ - &#x5B;L]\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteRule . \/index.php &#x5B;L]\n&lt;\/IfModule&gt;\n<\/pre><\/div>\n\n\n<p>Ch\u00fac c\u00e1c b\u1ea1n th\u00e0nh c\u00f4ng<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ch\u00e0o c\u00e1c b\u1ea1n, sau khi c\u00e1c b\u1ea1n \u0111\u00e3 c\u00e0i \u0111\u1eb7t giao th\u1ee9c https cho website c\u1ee7a c\u00e1c b\u1ea1n. \u0110\u1ec3 chuy\u1ec3n [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":6737,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[137],"tags":[],"class_list":["post-6736","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"views":586,"_links":{"self":[{"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/posts\/6736","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/comments?post=6736"}],"version-history":[{"count":5,"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/posts\/6736\/revisions"}],"predecessor-version":[{"id":7748,"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/posts\/6736\/revisions\/7748"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/media\/6737"}],"wp:attachment":[{"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/media?parent=6736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/categories?post=6736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/tags?post=6736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}