{"id":114992,"date":"2025-06-17T13:14:00","date_gmt":"2025-06-17T06:14:00","guid":{"rendered":"https:\/\/tino.vn\/blog\/?p=114992"},"modified":"2025-06-17T00:33:28","modified_gmt":"2025-06-16T17:33:28","slug":"cach-tao-file-htaccess-dung-chuan-cho-wordpress","status":"publish","type":"post","link":"https:\/\/tino.vn\/blog\/cach-tao-file-htaccess-dung-chuan-cho-wordpress\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn c\u00e1ch t\u1ea1o file .htaccess \u0111\u00fang chu\u1ea9n cho WordPress"},"content":{"rendered":"\n<p><strong>\u0110\u1ec3 t\u1ed1i \u01b0u h\u00f3a hi\u1ec7u su\u1ea5t v\u00e0 b\u1ea3o m\u1eadt cho trang web c\u1ee7a b\u1ea1n, vi\u1ec7c c\u1ea5u h\u00ecnh \u0111\u00fang c\u00e1c t\u1eadp tin h\u1ec7 th\u1ed1ng l\u00e0 v\u00f4 c\u00f9ng quan tr\u1ecdng. M\u1ed9t trong nh\u1eefng t\u1eadp tin kh\u00f4ng th\u1ec3 b\u1ecf qua ch\u00ednh l\u00e0 .htaccess. V\u1eady .htaccess l\u00e0 g\u00ec? B\u00e0i vi\u1ebft n\u00e0y s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch t\u1ea1o file .htaccess \u0111\u00fang chu\u1ea9n cho WordPress.<\/strong><\/p>\n\n\n\n<h2 id=\"\u0110\u00f4i_n\u00e9t_v\u1ec1_file_.htaccess\"><a id=\"post-114992-_9yt30g51omqh\"><\/a>\u0110\u00f4i n\u00e9t v\u1ec1 file .htaccess<\/h2>\n\n\n\n<h3 id=\"File_.htaccess_l\u00e0_g\u00ec?\"><a id=\"post-114992-_hkjhgrmmcq5p\"><\/a><strong>File .htaccess l\u00e0 g\u00ec?<\/strong><\/h3>\n\n\n\n<p><a href=\"https:\/\/tino.vn\/blog\/file-htaccess-la-gi\/\" target=\"_blank\" data-type=\"post\" data-id=\"15696\" rel=\"noreferrer noopener\">.htaccess<\/a> l\u00e0 m\u1ed9t t\u1eadp tin c\u1ea5u h\u00ecnh \u0111\u1eb7c bi\u1ec7t \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng tr\u00ean c\u00e1c m\u00e1y ch\u1ee7 web ch\u1ea1y <a href=\"https:\/\/tino.vn\/blog\/apache-la-gi\/\" target=\"_blank\" data-type=\"post\" data-id=\"15785\" rel=\"noreferrer noopener\">Apache<\/a>, cho ph\u00e9p ng\u01b0\u1eddi d\u00f9ng \u0111i\u1ec1u ch\u1ec9nh c\u00e1ch m\u00e1y ch\u1ee7 x\u1eed l\u00fd c\u00e1c y\u00eau c\u1ea7u HTTP m\u00e0 kh\u00f4ng c\u1ea7n can thi\u1ec7p tr\u1ef1c ti\u1ebfp v\u00e0o file c\u1ea5u h\u00ecnh ch\u00ednh c\u1ee7a m\u00e1y ch\u1ee7. \u0110\u00e2y l\u00e0 m\u1ed9t c\u00f4ng c\u1ee5 m\u1ea1nh m\u1ebd gi\u00fap qu\u1ea3n l\u00fd nhi\u1ec1u kh\u00eda c\u1ea1nh quan tr\u1ecdng c\u1ee7a website, t\u1eeb vi\u1ec7c t\u1ea1o \u0111\u01b0\u1eddng d\u1eabn th\u00e2n thi\u1ec7n (<a href=\"https:\/\/tino.vn\/blog\/permalink-la-gi\/\" target=\"_blank\" data-type=\"post\" data-id=\"114358\" rel=\"noreferrer noopener\">permalinks<\/a>), chuy\u1ec3n h\u01b0\u1edbng URL, ki\u1ec3m so\u00e1t quy\u1ec1n truy c\u1eadp, \u0111\u1ebfn t\u0103ng c\u01b0\u1eddng b\u1ea3o m\u1eadt v\u00e0 t\u1ed1i \u01b0u h\u00f3a hi\u1ec7u su\u1ea5t.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"400\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-1.png\" alt=\"\" class=\"wp-image-115008\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-1.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-1-300x171.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>File .htaccess l\u00e0 g\u00ec?<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>File .htaccess th\u01b0\u1eddng n\u1eb1m trong th\u01b0 m\u1ee5c g\u1ed1c c\u1ee7a website v\u00e0 c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c ch\u1ec9nh s\u1eeda linh ho\u1ea1t b\u1eb1ng c\u00e1c tr\u00ecnh so\u1ea1n th\u1ea3o v\u0103n b\u1ea3n th\u00f4ng th\u01b0\u1eddng. Tuy nhi\u00ean, do t\u00ednh ch\u1ea5t nh\u1ea1y c\u1ea3m c\u1ee7a n\u00f3, b\u1ea5t k\u1ef3 sai s\u00f3t n\u00e0o trong qu\u00e1 tr\u00ecnh ch\u1ec9nh s\u1eeda \u0111\u1ec1u c\u00f3 th\u1ec3 g\u00e2y ra l\u1ed7i nghi\u00eam tr\u1ecdng, v\u00ec v\u1eady, vi\u1ec7c sao l\u01b0u v\u00e0 ki\u1ec3m tra k\u1ef9 l\u01b0\u1ee1ng lu\u00f4n \u0111\u01b0\u1ee3c khuy\u1ebfn ngh\u1ecb.<\/p>\n\n\n\n<p>C\u1ea5u tr\u00fac m\u1eb7c \u0111\u1ecbnh c\u1ee7a file .htaccess WordPress:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># BEGIN WordPress\n\n&lt;IfModule mod_rewrite.c>\n\nRewriteEngine On\n\nRewriteBase \/\n\nRewriteRule ^index\\.php$ - &#91;L]\n\nRewriteCond %{REQUEST_FILENAME} !-f\n\nRewriteCond %{REQUEST_FILENAME} !-d\n\nRewriteRule . \/index.php &#91;L]\n\n&lt;\/IfModule>\n\n# END WordPress<\/code><\/pre>\n\n\n\n<h3 id=\"Ch\u1ee9c_n\u0103ng_c\u1ee7a_file_.htaccess\"><a id=\"post-114992-_w93nbvf08jih\"><\/a><strong>Ch\u1ee9c n\u0103ng c\u1ee7a file .htaccess<\/strong><\/h3>\n\n\n\n<h4 id=\"T\u1ea1o_\u0111\u01b0\u1eddng_d\u1eabn_th\u00e2n_thi\u1ec7n_(Permalinks)\"><a id=\"post-114992-_5evnelssby1\"><\/a><strong>T\u1ea1o \u0111\u01b0\u1eddng d\u1eabn th\u00e2n thi\u1ec7n (Permalinks)<\/strong><\/h4>\n\n\n\n<p>File .htaccess gi\u00fap t\u00f9y ch\u1ec9nh c\u1ea5u tr\u00fac URL \u0111\u1ec3 t\u1ea1o ra c\u00e1c \u0111\u01b0\u1eddng d\u1eabn ng\u1eafn g\u1ecdn, d\u1ec5 \u0111\u1ecdc v\u00e0 th\u00e2n thi\u1ec7n v\u1edbi ng\u01b0\u1eddi d\u00f9ng c\u0169ng nh\u01b0 c\u00f4ng c\u1ee5 t\u00ecm ki\u1ebfm. \u0110i\u1ec1u n\u00e0y \u0111\u1eb7c bi\u1ec7t quan tr\u1ecdng \u0111\u1ed1i v\u1edbi c\u00e1c trang web WordPress.<\/p>\n\n\n\n<h4 id=\"Chuy\u1ec3n_h\u01b0\u1edbng_URL\"><a id=\"post-114992-_rft9luc6j78y\"><\/a><strong>Chuy\u1ec3n h\u01b0\u1edbng URL<\/strong><\/h4>\n\n\n\n<p>B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng .htaccess \u0111\u1ec3 thi\u1ebft l\u1eadp c\u00e1c quy t\u1eafc chuy\u1ec3n h\u01b0\u1edbng (redirect) t\u1eeb m\u1ed9t URL c\u0169 sang URL m\u1edbi, t\u1eeb HTTP sang HTTPS ho\u1eb7c gi\u1eefa c\u00e1c t\u00ean mi\u1ec1n kh\u00e1c nhau. \u0110i\u1ec1u n\u00e0y r\u1ea5t h\u1eefu \u00edch khi thay \u0111\u1ed5i c\u1ea5u tr\u00fac website ho\u1eb7c n\u00e2ng c\u1ea5p h\u1ec7 th\u1ed1ng.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"400\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-2.png\" alt=\"Ch\u1ee9c n\u0103ng c\u1ee7a file .htaccess\" class=\"wp-image-115009\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-2.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-2-300x171.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>Ch\u1ee9c n\u0103ng c\u1ee7a file .htaccess<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h4 id=\"Ki\u1ec3m_so\u00e1t_quy\u1ec1n_truy_c\u1eadp\"><a id=\"post-114992-_msquwkr7nslu\"><\/a><strong>Ki\u1ec3m so\u00e1t quy\u1ec1n truy c\u1eadp<\/strong><\/h4>\n\n\n\n<p>File .htaccess cho ph\u00e9p b\u1ea1n gi\u1edbi h\u1ea1n quy\u1ec1n truy c\u1eadp v\u00e0o c\u00e1c th\u01b0 m\u1ee5c ho\u1eb7c t\u1eadp tin nh\u1ea5t \u0111\u1ecbnh b\u1eb1ng c\u00e1ch x\u00e1c th\u1ef1c ng\u01b0\u1eddi d\u00f9ng ho\u1eb7c ch\u1eb7n \u0111\u1ecba ch\u1ec9 IP c\u1ee5 th\u1ec3. \u0110i\u1ec1u n\u00e0y gi\u00fap t\u0103ng c\u01b0\u1eddng b\u1ea3o m\u1eadt cho website.<\/p>\n\n\n\n<h4 id=\"T\u0103ng_c\u01b0\u1eddng_b\u1ea3o_m\u1eadt\"><a id=\"post-114992-_l3wlm764fgy7\"><\/a><strong>T\u0103ng c\u01b0\u1eddng b\u1ea3o m\u1eadt<\/strong><\/h4>\n\n\n\n<p>B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng .htaccess \u0111\u1ec3 v\u00f4 hi\u1ec7u h\u00f3a truy c\u1eadp v\u00e0o c\u00e1c file quan tr\u1ecdng (nh\u01b0 wp-config.php), ng\u0103n ch\u1eb7n t\u1ea5n c\u00f4ng brute-force ho\u1eb7c v\u00f4 hi\u1ec7u h\u00f3a th\u1ef1c thi m\u00e3 \u0111\u1ed9c trong c\u00e1c th\u01b0 m\u1ee5c upload.<\/p>\n\n\n\n<h4 id=\"X\u1eed_l\u00fd_l\u1ed7i_t\u00f9y_ch\u1ec9nh\"><a id=\"post-114992-_owv1mr1pzmxb\"><\/a><strong>X\u1eed l\u00fd l\u1ed7i t\u00f9y ch\u1ec9nh<\/strong><\/h4>\n\n\n\n<p>File .htaccess cho ph\u00e9p b\u1ea1n \u0111\u1ecbnh ngh\u0129a c\u00e1c trang l\u1ed7i t\u00f9y ch\u1ec9nh (v\u00ed d\u1ee5: 404 Not Found, 403 Forbidden) \u0111\u1ec3 c\u1ea3i thi\u1ec7n tr\u1ea3i nghi\u1ec7m ng\u01b0\u1eddi d\u00f9ng khi g\u1eb7p l\u1ed7i.<\/p>\n\n\n\n<h4 id=\"T\u1ed1i_\u01b0u_h\u00f3a_hi\u1ec7u_su\u1ea5t\"><a id=\"post-114992-_nvbppxn44a9u\"><\/a><strong>T\u1ed1i \u01b0u h\u00f3a hi\u1ec7u su\u1ea5t<\/strong><\/h4>\n\n\n\n<p>B\u1ea1n c\u00f3 th\u1ec3 b\u1eadt t\u00ednh n\u0103ng n\u00e9n d\u1eef li\u1ec7u (gzip compression) ho\u1eb7c thi\u1ebft l\u1eadp b\u1ed9 nh\u1edb \u0111\u1ec7m (browser caching) th\u00f4ng qua .htaccess, gi\u00fap gi\u1ea3m th\u1eddi gian t\u1ea3i trang v\u00e0 c\u1ea3i thi\u1ec7n t\u1ed1c \u0111\u1ed9 website.<\/p>\n\n\n\n<h4 id=\"Qu\u1ea3n_l\u00fd_MIME_Types\"><a id=\"post-114992-_bjtrubmquahe\"><\/a><strong>Qu\u1ea3n l\u00fd MIME Types<\/strong><\/h4>\n\n\n\n<p>File .htaccess h\u1ed7 tr\u1ee3 khai b\u00e1o c\u00e1c lo\u1ea1i t\u1ec7p tin (MIME types) \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o m\u00e1y ch\u1ee7 x\u1eed l\u00fd \u0111\u00fang \u0111\u1ecbnh d\u1ea1ng c\u1ee7a t\u1eebng lo\u1ea1i file, t\u1eeb \u0111\u00f3 tr\u00e1nh c\u00e1c l\u1ed7i hi\u1ec3n th\u1ecb ho\u1eb7c t\u1ea3i n\u1ed9i dung.<\/p>\n\n\n\n<h2 id=\"File_.htaccess_n\u1eb1m_\u1edf_\u0111\u00e2u?\"><a id=\"post-114992-_7udew5iw58v4\"><\/a><strong>File .htaccess n\u1eb1m \u1edf \u0111\u00e2u?<\/strong><\/h2>\n\n\n\n<p>Nh\u01b0 \u0111\u00e3 chia s\u1ebb \u1edf tr\u00ean, n\u1ebfu website WordPress c\u1ee7a b\u1ea1n ho\u1ea1t \u0111\u1ed9ng tr\u00ean m\u00e1y ch\u1ee7 NGINX, b\u1ea1n s\u1ebd kh\u00f4ng th\u1ea5y file .htaccess v\u00ec <a href=\"https:\/\/nginx.org\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/nginx.org\/\" rel=\"noreferrer noopener nofollow\">NGINX<\/a> kh\u00f4ng s\u1eed d\u1ee5ng t\u1ec7p n\u00e0y.<\/p>\n\n\n\n<p>Tuy nhi\u00ean, n\u1ebfu website c\u1ee7a b\u1ea1n \u0111\u01b0\u1ee3c l\u01b0u tr\u1eef tr\u00ean m\u00e1y ch\u1ee7 Apache, file .htaccess s\u1ebd n\u1eb1m trong th\u01b0 m\u1ee5c g\u1ed1c c\u1ee7a website (public_html ho\u1eb7c www).<\/p>\n\n\n\n<h3 id=\"C\u00e1ch_t\u00ecm_file_.htaccess_b\u1eb1ng_FileZilla_FTP\"><a id=\"post-114992-_gf4f2942m23c\"><\/a><strong>C\u00e1ch t\u00ecm file .htaccess b\u1eb1ng FileZilla FTP<\/strong><\/h3>\n\n\n\n<p>\u0110\u1ec3 truy c\u1eadp file .htaccess, b\u1ea1n c\u1ea7n k\u1ebft n\u1ed1i v\u1edbi m\u00e1y ch\u1ee7 th\u00f4ng qua m\u1ed9t FTP Client nh\u01b0 FileZilla v\u00e0 \u0111i\u1ec1u h\u01b0\u1edbng \u0111\u1ebfn th\u01b0 m\u1ee5c g\u1ed1c c\u1ee7a \u1ee9ng d\u1ee5ng. V\u00ed d\u1ee5:<\/p>\n\n\n\n<p>\/applications\/mamxbvhtce\/public_html<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"672\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-12-1024x672.png\" alt=\"C\u00e1ch t\u00ecm file .htaccess b\u1eb1ng FileZilla FTP\" class=\"wp-image-115010\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-12-1024x672.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-12-300x197.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-12-768x504.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-12.png 1168w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u00e1ch t\u00ecm file .htaccess b\u1eb1ng FileZilla FTP<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>N\u1ebfu b\u1ea1n kh\u00f4ng th\u1ea5y file .htaccess, c\u00f3 th\u1ec3 n\u00f3 \u0111ang b\u1ecb \u1ea9n (do kh\u00f4ng c\u00f3 ph\u1ea7n m\u1edf r\u1ed9ng), ch\u1ee7 y\u1ebfu v\u00ec l\u00fd do b\u1ea3o m\u1eadt. \u0110\u1ec3 hi\u1ec3n th\u1ecb file .htaccess trong FileZilla, h\u00e3y l\u00e0m theo c\u00e1c b\u01b0\u1edbc sau:<\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 1:<\/strong> Tr\u00ean thanh c\u00f4ng c\u1ee5 c\u1ee7a FileZilla, v\u00e0o <strong>Server<\/strong>.<\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 2: <\/strong>Ch\u1ecdn <strong>Force Showing Hidden Files<\/strong>.<\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 3: <\/strong>Sau khi b\u1eadt t\u00f9y ch\u1ecdn n\u00e0y, .htaccess s\u1ebd xu\u1ea5t hi\u1ec7n trong danh s\u00e1ch file.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"672\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-13-1024x672.jpg\" alt=\"C\u00e1ch t\u00ecm file .htaccess b\u1eb1ng FileZilla FTP\" class=\"wp-image-115011\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-13-1024x672.jpg 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-13-300x197.jpg 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-13-768x504.jpg 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-13.jpg 1168w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u00e1ch t\u00ecm file .htaccess b\u1eb1ng FileZilla FTP<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h3 id=\"C\u00e1ch_t\u00ecm_file_.htaccess_b\u1eb1ng_cPanel\"><a id=\"post-114992-_5tdi25ujn373\"><\/a><strong>C\u00e1ch t\u00ecm file .htaccess b\u1eb1ng cPanel<\/strong><\/h3>\n\n\n\n<p>N\u1ebfu b\u1ea1n s\u1eed d\u1ee5ng cPanel, h\u00e3y l\u00e0m theo h\u01b0\u1edbng d\u1eabn sau \u0111\u1ec3 t\u00ecm file .htaccess:<\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 1:<\/strong> \u0110\u0103ng nh\u1eadp v\u00e0o cPanel v\u00e0 m\u1edf <strong>File Manager<\/strong>.<\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 2:<\/strong> \u1ede g\u00f3c tr\u00ean b\u00ean ph\u1ea3i, nh\u1ea5n v\u00e0o n\u00fat <strong>Settings<\/strong>.<\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 3: <\/strong>Trong c\u1eeda s\u1ed5 b\u1eadt l\u00ean, t\u00edch ch\u1ecdn <strong>Show Hidden Files (dotfiles) <\/strong>\u0111\u1ec3 hi\u1ec3n th\u1ecb c\u00e1c file \u1ea9n.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"400\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-4.png\" alt=\"C\u00e1ch t\u00ecm file .htaccess b\u1eb1ng cPanel\" class=\"wp-image-115012\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-4.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-4-300x171.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u00e1ch t\u00ecm file .htaccess b\u1eb1ng cPanel<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>Nh\u1ea5n <strong>Save<\/strong> v\u00e0 file .htaccess s\u1ebd hi\u1ec3n th\u1ecb trong File Manager.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"400\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-5.png\" alt=\"C\u00e1ch t\u00ecm file .htaccess b\u1eb1ng cPanel\" class=\"wp-image-115013\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-5.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-5-300x171.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u00e1ch t\u00ecm file .htaccess b\u1eb1ng cPanel<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h2 id=\"Nh\u1eefng_l\u01b0u_\u00fd_tr\u01b0\u1edbc_khi_t\u1ea1o_ho\u1eb7c_ch\u1ec9nh_s\u1eeda_file_.htaccess\"><a id=\"post-114992-_dbpr76zb2olk\"><\/a>Nh\u1eefng l\u01b0u \u00fd tr\u01b0\u1edbc khi t\u1ea1o ho\u1eb7c ch\u1ec9nh s\u1eeda file .htaccess<\/h2>\n\n\n\n<h3 id=\"Sao_l\u01b0u_file_tr\u01b0\u1edbc_khi_ch\u1ec9nh_s\u1eeda\"><a id=\"post-114992-_3vt5qjr43zlb\"><\/a><strong>Sao l\u01b0u file tr\u01b0\u1edbc khi ch\u1ec9nh s\u1eeda<\/strong><\/h3>\n\n\n\n<p>Lu\u00f4n sao l\u01b0u file .htaccess g\u1ed1c tr\u01b0\u1edbc khi th\u1ef1c hi\u1ec7n b\u1ea5t k\u1ef3 thay \u0111\u1ed5i n\u00e0o. \u0110i\u1ec1u n\u00e0y gi\u00fap b\u1ea1n kh\u00f4i ph\u1ee5c l\u1ea1i c\u1ea5u h\u00ecnh ban \u0111\u1ea7u n\u1ebfu x\u1ea3y ra l\u1ed7i. N\u1ebfu ch\u01b0a c\u00f3 file .htaccess, h\u00e3y ki\u1ec3m tra k\u1ef9 c\u00e1c quy t\u1eafc m\u1eb7c \u0111\u1ecbnh c\u1ee7a WordPress ho\u1eb7c m\u00e1y ch\u1ee7 \u0111\u1ec3 tr\u00e1nh m\u1ea5t d\u1eef li\u1ec7u.<\/p>\n\n\n\n<h3 id=\"\u0110\u1ea3m_b\u1ea3o_quy\u1ec1n_truy_c\u1eadp_ch\u00ednh_x\u00e1c\"><a id=\"post-114992-_3di31j1lc7bk\"><\/a><strong>\u0110\u1ea3m b\u1ea3o quy\u1ec1n truy c\u1eadp ch\u00ednh x\u00e1c<\/strong><\/h3>\n\n\n\n<p>File .htaccess ph\u1ea3i \u0111\u01b0\u1ee3c \u0111\u1eb7t \u1edf \u0111\u00fang th\u01b0 m\u1ee5c g\u1ed1c c\u1ee7a website (th\u01b0\u1eddng l\u00e0 th\u01b0 m\u1ee5c public_html ho\u1eb7c th\u01b0 m\u1ee5c ch\u1ee9a m\u00e3 ngu\u1ed3n WordPress).<\/p>\n\n\n\n<p>Ngo\u00e0i ra, b\u1ea1n c\u1ea7n \u0111\u1ea3m b\u1ea3o r\u1eb1ng quy\u1ec1n truy c\u1eadp (file permission) c\u1ee7a .htaccess \u0111\u01b0\u1ee3c thi\u1ebft l\u1eadp \u1edf m\u1ee9c an to\u00e0n, th\u01b0\u1eddng l\u00e0 644 . Quy\u1ec1n n\u00e0y cho ph\u00e9p ch\u1ee7 s\u1edf h\u1eefu ch\u1ec9nh s\u1eeda file trong khi ng\u01b0\u1eddi d\u00f9ng kh\u00e1c ch\u1ec9 c\u00f3 th\u1ec3 \u0111\u1ecdc.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"400\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-3.png\" alt=\"Nh\u1eefng l\u01b0u \u00fd tr\u01b0\u1edbc khi t\u1ea1o ho\u1eb7c ch\u1ec9nh s\u1eeda file .htaccess\" class=\"wp-image-115014\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-3.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-3-300x171.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>Nh\u1eefng l\u01b0u \u00fd tr\u01b0\u1edbc khi t\u1ea1o ho\u1eb7c ch\u1ec9nh s\u1eeda file .htaccess<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h3 id=\"S\u1eed_d\u1ee5ng_c\u00fa_ph\u00e1p_ch\u00ednh_x\u00e1c\"><a id=\"post-114992-_kqh80cogbjor\"><\/a><strong>S\u1eed d\u1ee5ng c\u00fa ph\u00e1p ch\u00ednh x\u00e1c<\/strong><\/h3>\n\n\n\n<p>File .htaccess r\u1ea5t nh\u1ea1y c\u1ea3m v\u1edbi c\u00fa ph\u00e1p. M\u1ed9t d\u1ea5u ch\u1ea5m ph\u1ea9y (;) ho\u1eb7c kho\u1ea3ng tr\u1eafng sai v\u1ecb tr\u00ed c\u00f3 th\u1ec3 khi\u1ebfn website ng\u1eebng ho\u1ea1t \u0111\u1ed9ng. Do \u0111\u00f3, b\u1ea1n c\u1ea7n ki\u1ec3m tra k\u1ef9 l\u01b0\u1ee1ng t\u1eebng d\u00f2ng code v\u00e0 \u0111\u1ea3m b\u1ea3o kh\u00f4ng c\u00f3 l\u1ed7i ch\u00ednh t\u1ea3. N\u1ebfu kh\u00f4ng ch\u1eafc ch\u1eafn, h\u00e3y tham kh\u1ea3o t\u00e0i li\u1ec7u ch\u00ednh th\u1ee9c ho\u1eb7c h\u01b0\u1edbng d\u1eabn t\u1eeb c\u00e1c ngu\u1ed3n \u0111\u00e1ng tin c\u1eady.<\/p>\n\n\n\n<h3 id=\"Kh\u00f4ng_x\u00f3a_c\u00e1c_quy_t\u1eafc_m\u1eb7c_\u0111\u1ecbnh_c\u1ee7a_WordPress\"><a id=\"post-114992-_28krp180u7wk\"><\/a><strong>Kh\u00f4ng x\u00f3a c\u00e1c quy t\u1eafc m\u1eb7c \u0111\u1ecbnh c\u1ee7a WordPress<\/strong><\/h3>\n\n\n\n<p>WordPress t\u1ef1 \u0111\u1ed9ng th\u00eam c\u00e1c quy t\u1eafc v\u00e0o file .htaccess \u0111\u1ec3 qu\u1ea3n l\u00fd Permalinks. H\u00e3y \u0111\u1ea3m b\u1ea3o r\u1eb1ng b\u1ea1n kh\u00f4ng x\u00f3a ho\u1eb7c ghi \u0111\u00e8 c\u00e1c quy t\u1eafc n\u00e0y tr\u1eeb khi b\u1ea1n bi\u1ebft r\u00f5 m\u00ecnh \u0111ang l\u00e0m g\u00ec. N\u1ebfu c\u1ea7n th\u00eam quy t\u1eafc m\u1edbi, h\u00e3y th\u00eam ch\u00fang sau c\u00e1c quy t\u1eafc m\u1eb7c \u0111\u1ecbnh c\u1ee7a WordPress.<\/p>\n\n\n\n<p>M\u1eb7c d\u00f9 .htaccess r\u1ea5t m\u1ea1nh m\u1ebd, nh\u01b0ng vi\u1ec7c s\u1eed d\u1ee5ng qu\u00e1 nhi\u1ec1u quy t\u1eafc c\u00f3 th\u1ec3 l\u00e0m ch\u1eadm t\u1ed1c \u0111\u1ed9 x\u1eed l\u00fd c\u1ee7a m\u00e1y ch\u1ee7. Ch\u1ec9 th\u00eam c\u00e1c quy t\u1eafc th\u1ef1c s\u1ef1 c\u1ea7n thi\u1ebft v\u00e0 t\u1ed1i \u01b0u h\u00f3a ch\u00fang \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o hi\u1ec7u su\u1ea5t t\u1ed1t nh\u1ea5t.<\/p>\n\n\n\n<h3 id=\"Ki\u1ec3m_tra_sau_khi_ch\u1ec9nh_s\u1eeda\"><a id=\"post-114992-_4xxfg56nxues\"><\/a><strong>Ki\u1ec3m tra sau khi ch\u1ec9nh s\u1eeda<\/strong><\/h3>\n\n\n\n<p>Sau khi ch\u1ec9nh s\u1eeda file .htaccess, h\u00e3y ki\u1ec3m tra ngay website \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o m\u1ecdi th\u1ee9 ho\u1ea1t \u0111\u1ed9ng b\u00ecnh th\u01b0\u1eddng. N\u1ebfu g\u1eb7p l\u1ed7i &#8220;500 Internal Server Error&#8221;, \u0111i\u1ec1u n\u00e0y th\u01b0\u1eddng do c\u00fa ph\u00e1p sai trong file .htaccess. B\u1ea1n c\u1ea7n nhanh ch\u00f3ng kh\u00f4i ph\u1ee5c b\u1ea3n sao l\u01b0u ho\u1eb7c s\u1eeda l\u1ed7i.<\/p>\n\n\n\n<h3 id=\"H\u1ea1n_ch\u1ebf_ch\u1ec9nh_s\u1eeda_tr\u00ean_m\u00f4i_tr\u01b0\u1eddng_live\"><a id=\"post-114992-_nq2qa2991d2y\"><\/a><strong>H\u1ea1n ch\u1ebf ch\u1ec9nh s\u1eeda tr\u00ean m\u00f4i tr\u01b0\u1eddng live<\/strong><\/h3>\n\n\n\n<p>N\u1ebfu c\u00f3 th\u1ec3, h\u00e3y th\u1ef1c hi\u1ec7n c\u00e1c thay \u0111\u1ed5i tr\u00ean m\u00f4i tr\u01b0\u1eddng th\u1eed nghi\u1ec7m (staging environment) tr\u01b0\u1edbc khi \u00e1p d\u1ee5ng l\u00ean website live. \u0110i\u1ec1u n\u00e0y gi\u00fap gi\u1ea3m thi\u1ec3u r\u1ee7i ro \u1ea3nh h\u01b0\u1edfng \u0111\u1ebfn tr\u1ea3i nghi\u1ec7m ng\u01b0\u1eddi d\u00f9ng.<\/p>\n\n\n\n<h3 id=\"T\u01b0\u01a1ng_th\u00edch_v\u1edbi_m\u00e1y_ch\u1ee7\"><a id=\"post-114992-_ebdjv6jpijfn\"><\/a><strong>T\u01b0\u01a1ng th\u00edch v\u1edbi m\u00e1y ch\u1ee7<\/strong><\/h3>\n\n\n\n<p>File .htaccess ch\u1ec9 ho\u1ea1t \u0111\u1ed9ng tr\u00ean c\u00e1c m\u00e1y ch\u1ee7 s\u1eed d\u1ee5ng Apache. N\u1ebfu b\u1ea1n \u0111ang s\u1eed d\u1ee5ng Nginx ho\u1eb7c c\u00e1c n\u1ec1n t\u1ea3ng kh\u00e1c, .htaccess s\u1ebd kh\u00f4ng c\u00f3 t\u00e1c d\u1ee5ng. V\u00ec v\u1eady, h\u00e3y ki\u1ec3m tra lo\u1ea1i m\u00e1y ch\u1ee7 tr\u01b0\u1edbc khi ch\u1ec9nh s\u1eeda.<\/p>\n\n\n\n<h2 id=\"C\u00e1ch_t\u1ea1o_file_.htaccess_\u0111\u00fang_chu\u1ea9n_cho_WordPress\"><a id=\"post-114992-_z2b98442bkb1\"><\/a>C\u00e1ch t\u1ea1o file .htaccess \u0111\u00fang chu\u1ea9n cho WordPress<\/h2>\n\n\n\n<h3 id=\"T\u1ea1o_file_.htaccess_th\u00f4ng_qua_b\u1ea3ng_\u0111i\u1ec1u_khi\u1ec3n_WordPress\"><a id=\"post-114992-_n7wko6sb2gy\"><\/a><strong>T\u1ea1o file .htaccess th\u00f4ng qua b\u1ea3ng \u0111i\u1ec1u khi\u1ec3n WordPress<\/strong><\/h3>\n\n\n\n<p>\u0110\u1ec3 t\u1ea1o .htaccess m\u1ed9t c\u00e1ch t\u1ef1 \u0111\u1ed9ng, b\u1ea1n c\u00f3 th\u1ec3 l\u00e0m theo c\u00e1c b\u01b0\u1edbc sau:<\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 1:<\/strong> \u0110\u0103ng nh\u1eadp v\u00e0o WordPress Dashboard.<\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 2: <\/strong>\u0110i\u1ec1u h\u01b0\u1edbng \u0111\u1ebfn <strong>C\u00e0i \u0111\u1eb7t (Settings)<\/strong> -&gt; <strong>\u0110\u01b0\u1eddng d\u1eabn t\u0129nh (Permalinks)<\/strong>.<\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 3: <\/strong>Nh\u1ea5n v\u00e0o n\u00fat <strong>L\u01b0u thay \u0111\u1ed5i (Save Changes)<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"400\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-6.png\" alt=\"\" class=\"wp-image-115015\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-6.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-6-300x171.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>T\u1ea1o file .htaccess th\u00f4ng qua b\u1ea3ng \u0111i\u1ec1u khi\u1ec3n WordPress<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>Sau khi th\u1ef1c hi\u1ec7n, WordPress s\u1ebd t\u1ef1 \u0111\u1ed9ng t\u1ea1o file .htaccess trong th\u01b0 m\u1ee5c g\u1ed1c c\u1ee7a website. M\u1eb7c \u0111\u1ecbnh, file n\u00e0y ch\u1ec9 d\u00f9ng \u0111\u1ec3 qu\u1ea3n l\u00fd permalink, nh\u01b0ng b\u1ea1n c\u00f3 th\u1ec3 ch\u1ec9nh s\u1eeda \u0111\u1ec3 th\u00eam c\u00e1c quy t\u1eafc nh\u01b0 chuy\u1ec3n h\u01b0\u1edbng (redirects), b\u1ed9 nh\u1edb \u0111\u1ec7m (caching), b\u1ea3o m\u1eadt v\u00e0 c\u00e1c c\u00e0i \u0111\u1eb7t c\u1ee7a m\u00e1y ch\u1ee7 Apache.<\/p>\n\n\n\n<h3 id=\"T\u1ea1o_file_.htaccess_th\u1ee7_c\u00f4ng_b\u1eb1ng_cPanel\"><a id=\"post-114992-_ep1j9wrvstbp\"><\/a><strong>T\u1ea1o file .htaccess th\u1ee7 c\u00f4ng b\u1eb1ng cPanel<\/strong><\/h3>\n\n\n\n<p>N\u1ebfu b\u1ea1n s\u1eed d\u1ee5ng cPanel, b\u1ea1n c\u00f3 th\u1ec3 t\u1ea1o file .htaccess theo c\u00e1c b\u01b0\u1edbc sau:<\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 1:<\/strong> \u0110\u0103ng nh\u1eadp v\u00e0o cPanel.<\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 2: <\/strong>M\u1edf <strong>File Manager<\/strong> t\u1eeb m\u1ee5c <strong>Files<\/strong>.<\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 3:<\/strong> Nh\u1ea5p v\u00e0o n\u00fat <strong>+ File<\/strong> \u1edf g\u00f3c tr\u00ean b\u00ean tr\u00e1i.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"400\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-7.png\" alt=\"T\u1ea1o file .htaccess th\u1ee7 c\u00f4ng b\u1eb1ng cPanel\" class=\"wp-image-115016\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-7.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-7-300x171.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>T\u1ea1o file .htaccess th\u1ee7 c\u00f4ng b\u1eb1ng cPanel<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>Trong c\u1eeda s\u1ed5 b\u1eadt l\u00ean, nh\u1eadp t\u00ean file l\u00e0 \u201c<strong>.htaccess<\/strong>\u201d v\u00e0 ch\u1ecdn th\u01b0 m\u1ee5c b\u1ea1n mu\u1ed1n t\u1ea1o file (th\u01b0\u1eddng l\u00e0 <strong>public_html<\/strong>).<\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 4: <\/strong>Nh\u1ea5n <strong>Create New File<\/strong> \u0111\u1ec3 ho\u00e0n t\u1ea5t.<\/p>\n\n\n\n<h3 id=\"T\u1ea1o_file_.htaccess_b\u1eb1ng_SFTP_ho\u1eb7c_FTP_Client_(FileZilla)\"><a id=\"post-114992-_eacdx5iyg7dx\"><\/a><strong>T\u1ea1o file .htaccess b\u1eb1ng SFTP ho\u1eb7c FTP Client (FileZilla)<\/strong><\/h3>\n\n\n\n<p>N\u1ebfu b\u1ea1n mu\u1ed1n t\u1ea1o file .htaccess tr\u00ean m\u00e1y t\u00ednh tr\u01b0\u1edbc khi t\u1ea3i l\u00ean m\u00e1y ch\u1ee7, h\u00e3y l\u00e0m nh\u01b0 sau:<\/p>\n\n\n\n<p>M\u1edf tr\u00ecnh ch\u1ec9nh s\u1eeda v\u0103n b\u1ea3n nh\u01b0 Notepad++, Sublime Text ho\u1eb7c VS Code.<\/p>\n\n\n\n<p>T\u1ea1o m\u1ed9t file m\u1edbi v\u00e0 \u0111\u1eb7t t\u00ean l\u00e0 .htaccess (l\u01b0u \u00fd c\u00f3 d\u1ea5u ch\u1ea5m \u1edf \u0111\u1ea7u, kh\u00f4ng ph\u1ea3i htaccess).<\/p>\n\n\n\n<p>Sao ch\u00e9p \u0111o\u1ea1n m\u00e3 sau v\u00e0o file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># BEGIN WordPress\n\n&lt;IfModule mod_rewrite.c>\n\nRewriteEngine On\n\nRewriteBase \/\n\nRewriteRule ^index.php$ - &#91;L]\n\nRewriteCond %{REQUEST_FILENAME} !-f\n\nRewriteCond %{REQUEST_FILENAME} !-d\n\nRewriteRule . \/index.php &#91;L]\n\n&lt;\/IfModule>\n\n# END WordPress<\/code><\/pre>\n\n\n\n<h2 id=\"C\u00e1ch_ch\u1ec9nh_s\u1eeda_file_.htaccess_trong_WordPress\"><a id=\"post-114992-_6o5rshbn80fw\"><\/a>C\u00e1ch ch\u1ec9nh s\u1eeda file .htaccess trong WordPress<\/h2>\n\n\n\n<p>B\u1ea1n c\u00f3 th\u1ec3 ch\u1ec9nh s\u1eeda file .htaccess b\u1eb1ng c\u00e1ch s\u1eed d\u1ee5ng File Manager, FTP Client ho\u1eb7c cPanel.<\/p>\n\n\n\n<h3 id=\"Ch\u1ec9nh_s\u1eeda_file_.htaccess_b\u1eb1ng_FTP_Client_(FileZilla)\"><a id=\"post-114992-_4to8w2h9tk7n\"><\/a><strong>Ch\u1ec9nh s\u1eeda file .htaccess b\u1eb1ng FTP Client (FileZilla)<\/strong><\/h3>\n\n\n\n<p><strong>B\u01b0\u1edbc 1:<\/strong> \u0110\u0103ng nh\u1eadp v\u00e0o FileZilla.<\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 2: <\/strong>\u0110i\u1ec1u h\u01b0\u1edbng \u0111\u1ebfn th\u01b0 m\u1ee5c public_html v\u00e0 t\u00ecm file .htaccess.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"400\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-9.png\" alt=\"T\u1ea1o file .htaccess b\u1eb1ng SFTP ho\u1eb7c FTP Client (FileZilla)\" class=\"wp-image-115017\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-9.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-9-300x171.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>T\u1ea1o file .htaccess b\u1eb1ng SFTP ho\u1eb7c FTP Client (FileZilla)<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 3: <\/strong>Nh\u1ea5p chu\u1ed9t ph\u1ea3i v\u00e0o file v\u00e0 ch\u1ecdn <strong>View\/Edit<\/strong> \u0111\u1ec3 m\u1edf trong tr\u00ecnh ch\u1ec9nh s\u1eeda v\u0103n b\u1ea3n.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"400\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-10.png\" alt=\"T\u1ea1o file .htaccess b\u1eb1ng SFTP ho\u1eb7c FTP Client (FileZilla)\" class=\"wp-image-115018\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-10.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-10-300x171.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>T\u1ea1o file .htaccess b\u1eb1ng SFTP ho\u1eb7c FTP Client (FileZilla)<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>Th\u1ef1c hi\u1ec7n c\u00e1c thay \u0111\u1ed5i c\u1ea7n thi\u1ebft v\u00e0 l\u01b0u file l\u1ea1i.<\/p>\n\n\n\n<p>N\u1ebfu ch\u1ec9nh s\u1eeda tr\u00ean m\u00e1y t\u00ednh, h\u00e3y thay th\u1ebf file c\u0169 b\u1eb1ng c\u00e1ch k\u00e9o th\u1ea3 file m\u1edbi v\u00e0o th\u01b0 m\u1ee5c public_html tr\u00ean m\u00e1y ch\u1ee7.<\/p>\n\n\n\n<h3 id=\"Ch\u1ec9nh_s\u1eeda_file_.htaccess_b\u1eb1ng_cPanel\"><a id=\"post-114992-_a7ls7hlx7exc\"><\/a><strong>Ch\u1ec9nh s\u1eeda file .htaccess b\u1eb1ng cPanel<\/strong><\/h3>\n\n\n\n<p>N\u1ebfu b\u1ea1n mu\u1ed1n ch\u1ec9nh s\u1eeda file .htaccess th\u00f4ng qua cPanel, h\u00e3y l\u00e0m nh\u01b0 sau:<\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 1:<\/strong> \u0110\u0103ng nh\u1eadp v\u00e0o cPanel c\u1ee7a hosting.<\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 2: <\/strong>M\u1edf File Manager trong ph\u1ea7n qu\u1ea3n l\u00fd t\u1eadp tin.<\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 3: <\/strong>\u0110i \u0111\u1ebfn th\u01b0 m\u1ee5c <strong>public_html<\/strong>, t\u00ecm file .htaccess.<\/p>\n\n\n\n<p>Nh\u1ea5p chu\u1ed9t ph\u1ea3i v\u00e0o file v\u00e0 ch\u1ecdn <strong>Edit <\/strong>\u0111\u1ec3 m\u1edf tr\u00ecnh ch\u1ec9nh s\u1eeda.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"400\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-8.png\" alt=\"\" class=\"wp-image-115020\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-8.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-8-300x171.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/figure>\n<\/div>\n\n\n<p>Th\u00eam m\u00e3 t\u00f9y ch\u1ec9nh (v\u00ed d\u1ee5: b\u1ea3o m\u1eadt, caching) v\u00e0o tr\u01b0\u1edbc d\u00f2ng <strong># BEGIN WordPress<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"400\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-11.png\" alt=\"Ch\u1ec9nh s\u1eeda file .htaccess b\u1eb1ng cPanel\" class=\"wp-image-115019\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-11.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/06\/cach-tao-file-.htaccess-dung-chuan-cho-wordpress-11-300x171.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>Ch\u1ec9nh s\u1eeda file .htaccess b\u1eb1ng cPanel<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 4:<\/strong> L\u01b0u l\u1ea1i thay \u0111\u1ed5i v\u00e0 ki\u1ec3m tra website \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o kh\u00f4ng c\u00f3 l\u1ed7i x\u1ea3y ra.<\/p>\n\n\n\n<h3 id=\"K\u1ebft_lu\u1eadn\"><a id=\"post-114992-_kxox8ubcatlh\"><\/a><strong>K\u1ebft lu\u1eadn<\/strong><\/h3>\n\n\n\n<p>File .htaccess \u0111\u00f3ng vai tr\u00f2 quan tr\u1ecdng trong vi\u1ec7c t\u1ed1i \u01b0u h\u00f3a v\u00e0 b\u1ea3o m\u1eadt website WordPress. Vi\u1ec7c t\u1ea1o v\u00e0 ch\u1ec9nh s\u1eeda file n\u00e0y \u0111\u00fang c\u00e1ch kh\u00f4ng ch\u1ec9 gi\u00fap website ho\u1ea1t \u0111\u1ed9ng \u1ed5n \u0111\u1ecbnh m\u00e0 c\u00f2n t\u0103ng t\u1ed1c \u0111\u1ed9 t\u1ea3i trang v\u00e0 ng\u0103n ch\u1eb7n c\u00e1c nguy c\u01a1 b\u1ea3o m\u1eadt. Hy v\u1ecdng b\u00e0i vi\u1ebft n\u00e0y s\u1ebd gi\u00fap b\u1ea1n hi\u1ec3u r\u00f5 h\u01a1n v\u1ec1 .htaccess v\u00e0 c\u00e1ch \u00e1p d\u1ee5ng hi\u1ec7u qu\u1ea3 cho website WordPress c\u1ee7a m\u00ecnh.<\/p>\n\n\n\n<h2 id=\"Nh\u1eefng_c\u00e2u_h\u1ecfi_th\u01b0\u1eddng_g\u1eb7p\"><a id=\"post-114992-_u2o74lpt812\"><\/a>Nh\u1eefng c\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p<\/h2>\n\n\n\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"C\u00f3_c\u00e1ch_n\u00e0o_t\u1ef1_\u0111\u1ed9ng_ch\u1ec9nh_s\u1eeda_file_.htaccess_kh\u00f4ng?\">C\u00f3 c\u00e1ch n\u00e0o t\u1ef1 \u0111\u1ed9ng ch\u1ec9nh s\u1eeda file .htaccess kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p>C\u00f3, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00e1c plugin nh\u01b0 Yoast SEO, WP Rocket, ho\u1eb7c All In One WP Security \u0111\u1ec3 t\u1ef1 \u0111\u1ed9ng ch\u1ec9nh s\u1eeda .htaccess m\u00e0 kh\u00f4ng c\u1ea7n thao t\u00e1c th\u1ee7 c\u00f4ng.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"T\u1ea1i_sao_c\u00e1c_thay_\u0111\u1ed5i_trong_.htaccess_kh\u00f4ng_c\u00f3_t\u00e1c_d\u1ee5ng?\">T\u1ea1i sao c\u00e1c thay \u0111\u1ed5i trong .htaccess kh\u00f4ng c\u00f3 t\u00e1c d\u1ee5ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p>C\u00f3 th\u1ec3 do m\u1ed9t trong nh\u1eefng nguy\u00ean nh\u00e2n sau:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>C\u00f3 m\u1ed9t file .htaccess kh\u00e1c \u1edf c\u1ea5p th\u01b0 m\u1ee5c con ghi \u0111\u00e8 l\u00ean c\u00e1c quy t\u1eafc c\u1ee7a b\u1ea1n.<\/li>\n\n\n\n<li>File .htaccess kh\u00f4ng n\u1eb1m trong th\u01b0 m\u1ee5c g\u1ed1c ho\u1eb7c kh\u00f4ng \u0111\u01b0\u1ee3c \u0111\u1eb7t \u0111\u00fang v\u1ecb tr\u00ed.<\/li>\n\n\n\n<li>Module mod_rewrite ch\u01b0a \u0111\u01b0\u1ee3c k\u00edch ho\u1ea1t tr\u00ean m\u00e1y ch\u1ee7 Apache.<\/li>\n\n\n\n<li>Hosting c\u1ee7a b\u1ea1n s\u1eed d\u1ee5ng Nginx thay v\u00ec Apache (.htaccess kh\u00f4ng ho\u1ea1t \u0111\u1ed9ng tr\u00ean Nginx).<\/li>\n<\/ul>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"T\u00f4i_nh\u1eadn_\u0111\u01b0\u1ee3c_l\u1ed7i_&quot;500_Internal_Server_Error&quot;_sau_khi_ch\u1ec9nh_s\u1eeda_.htaccess._Ph\u1ea3i_l\u00e0m_g\u00ec?\">T\u00f4i nh\u1eadn \u0111\u01b0\u1ee3c l\u1ed7i &quot;500 Internal Server Error&quot; sau khi ch\u1ec9nh s\u1eeda .htaccess. Ph\u1ea3i l\u00e0m g\u00ec?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p>L\u1ed7i &#8220;500 Internal Server Error&#8221; th\u01b0\u1eddng x\u1ea3y ra do c\u00fa ph\u00e1p sai trong file .htaccess. \u0110\u1ec3 kh\u1eafc ph\u1ee5c:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ki\u1ec3m tra k\u1ef9 t\u1eebng d\u00f2ng code trong file .htaccess \u0111\u1ec3 ph\u00e1t hi\u1ec7n l\u1ed7i c\u00fa ph\u00e1p.<\/li>\n\n\n\n<li>Kh\u00f4i ph\u1ee5c file .htaccess t\u1eeb b\u1ea3n sao l\u01b0u.<\/li>\n\n\n\n<li>N\u1ebfu kh\u00f4ng c\u00f3 b\u1ea3n sao l\u01b0u, h\u00e3y t\u1ea1m th\u1eddi \u0111\u1ed5i t\u00ean file .htaccess th\u00e0nh m\u1ed9t t\u00ean kh\u00e1c (v\u00ed d\u1ee5: .htaccess_old) \u0111\u1ec3 v\u00f4 hi\u1ec7u h\u00f3a n\u00f3. Sau \u0111\u00f3 ki\u1ec3m tra l\u1ea1i website.<\/li>\n<\/ul>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"C\u00f3_th\u1ec3_t\u1ea1o_file_.htaccess_b\u1eb1ng_notepad_r\u1ed3i_up_l\u00ean_cPanel_kh\u00f4ng?\">C\u00f3 th\u1ec3 t\u1ea1o file .htaccess b\u1eb1ng notepad r\u1ed3i up l\u00ean cPanel kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p>C\u00f3, b\u1ea1n ho\u00e0n to\u00e0n c\u00f3 th\u1ec3 t\u1ea1o file .htaccess b\u1eb1ng Notepad (ho\u1eb7c b\u1ea5t k\u1ef3 tr\u00ecnh so\u1ea1n th\u1ea3o v\u0103n b\u1ea3n n\u00e0o kh\u00e1c) v\u00e0 upload l\u00ean cPanel . \u0110\u00e2y l\u00e0 m\u1ed9t ph\u01b0\u01a1ng ph\u00e1p ph\u1ed5 bi\u1ebfn v\u00e0 d\u1ec5 th\u1ef1c hi\u1ec7n, \u0111\u1eb7c bi\u1ec7t khi b\u1ea1n kh\u00f4ng c\u00f3 quy\u1ec1n truy c\u1eadp tr\u1ef1c ti\u1ebfp v\u00e0o m\u00e1y ch\u1ee7 ho\u1eb7c mu\u1ed1n ch\u1ec9nh s\u1eeda file m\u1ed9t c\u00e1ch th\u1ee7 c\u00f4ng.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\n<script type=\"application\/ld+json\">\n\t{\n\t\t\"@context\": \"https:\/\/schema.org\",\n\t\t\"@type\": \"FAQPage\",\n\t\t\"mainEntity\": [\n\t\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"C\u00f3 c\u00e1ch n\u00e0o t\u1ef1 \u0111\u1ed9ng ch\u1ec9nh s\u1eeda file .htaccess kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>C\u00f3, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00e1c plugin nh\u01b0 Yoast SEO, WP Rocket, ho\u1eb7c All In One WP Security \u0111\u1ec3 t\u1ef1 \u0111\u1ed9ng ch\u1ec9nh s\u1eeda .htaccess m\u00e0 kh\u00f4ng c\u1ea7n thao t\u00e1c th\u1ee7 c\u00f4ng.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"T\u1ea1i sao c\u00e1c thay \u0111\u1ed5i trong .htaccess kh\u00f4ng c\u00f3 t\u00e1c d\u1ee5ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>C\u00f3 th\u1ec3 do m\u1ed9t trong nh\u1eefng nguy\u00ean nh\u00e2n sau:<\/p><ul><li>C\u00f3 m\u1ed9t file .htaccess kh\u00e1c \u1edf c\u1ea5p th\u01b0 m\u1ee5c con ghi \u0111\u00e8 l\u00ean c\u00e1c quy t\u1eafc c\u1ee7a b\u1ea1n.<\/li><li>File .htaccess kh\u00f4ng n\u1eb1m trong th\u01b0 m\u1ee5c g\u1ed1c ho\u1eb7c kh\u00f4ng \u0111\u01b0\u1ee3c \u0111\u1eb7t \u0111\u00fang v\u1ecb tr\u00ed.<\/li><li>Module mod_rewrite ch\u01b0a \u0111\u01b0\u1ee3c k\u00edch ho\u1ea1t tr\u00ean m\u00e1y ch\u1ee7 Apache.<\/li><li>Hosting c\u1ee7a b\u1ea1n s\u1eed d\u1ee5ng Nginx thay v\u00ec Apache (.htaccess kh\u00f4ng ho\u1ea1t \u0111\u1ed9ng tr\u00ean Nginx).<\/li><\/ul>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"T\u00f4i nh\u1eadn \u0111\u01b0\u1ee3c l\u1ed7i \\\"500 Internal Server Error\\\" sau khi ch\u1ec9nh s\u1eeda .htaccess. Ph\u1ea3i l\u00e0m g\u00ec?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>L\u1ed7i \\\"500 Internal Server Error\\\" th\u01b0\u1eddng x\u1ea3y ra do c\u00fa ph\u00e1p sai trong file .htaccess. \u0110\u1ec3 kh\u1eafc ph\u1ee5c:<\/p><ul><li>Ki\u1ec3m tra k\u1ef9 t\u1eebng d\u00f2ng code trong file .htaccess \u0111\u1ec3 ph\u00e1t hi\u1ec7n l\u1ed7i c\u00fa ph\u00e1p.<\/li><li>Kh\u00f4i ph\u1ee5c file .htaccess t\u1eeb b\u1ea3n sao l\u01b0u.<\/li><li>N\u1ebfu kh\u00f4ng c\u00f3 b\u1ea3n sao l\u01b0u, h\u00e3y t\u1ea1m th\u1eddi \u0111\u1ed5i t\u00ean file .htaccess th\u00e0nh m\u1ed9t t\u00ean kh\u00e1c (v\u00ed d\u1ee5: .htaccess_old) \u0111\u1ec3 v\u00f4 hi\u1ec7u h\u00f3a n\u00f3. Sau \u0111\u00f3 ki\u1ec3m tra l\u1ea1i website.<\/li><\/ul>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"C\u00f3 th\u1ec3 t\u1ea1o file .htaccess b\u1eb1ng notepad r\u1ed3i up l\u00ean cPanel kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>C\u00f3, b\u1ea1n ho\u00e0n to\u00e0n c\u00f3 th\u1ec3 t\u1ea1o file .htaccess b\u1eb1ng Notepad (ho\u1eb7c b\u1ea5t k\u1ef3 tr\u00ecnh so\u1ea1n th\u1ea3o v\u0103n b\u1ea3n n\u00e0o kh\u00e1c) v\u00e0 upload l\u00ean cPanel . \u0110\u00e2y l\u00e0 m\u1ed9t ph\u01b0\u01a1ng ph\u00e1p ph\u1ed5 bi\u1ebfn v\u00e0 d\u1ec5 th\u1ef1c hi\u1ec7n, \u0111\u1eb7c bi\u1ec7t khi b\u1ea1n kh\u00f4ng c\u00f3 quy\u1ec1n truy c\u1eadp tr\u1ef1c ti\u1ebfp v\u00e0o m\u00e1y ch\u1ee7 ho\u1eb7c mu\u1ed1n ch\u1ec9nh s\u1eeda file m\u1ed9t c\u00e1ch th\u1ee7 c\u00f4ng.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t]\n\t}\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>\u0110\u1ec3 t\u1ed1i \u01b0u h\u00f3a hi\u1ec7u su\u1ea5t v\u00e0 b\u1ea3o m\u1eadt cho trang web c\u1ee7a b\u1ea1n, vi\u1ec7c c\u1ea5u h\u00ecnh \u0111\u00fang c\u00e1c t\u1eadp tin h\u1ec7 th\u1ed1ng l\u00e0 v\u00f4 c\u00f9ng quan tr\u1ecdng. M\u1ed9t trong nh\u1eefng t\u1eadp tin kh\u00f4ng th\u1ec3 b\u1ecf qua ch\u00ednh l\u00e0 .htaccess. V\u1eady .htaccess l\u00e0 g\u00ec? B\u00e0i vi\u1ebft n\u00e0y s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch t\u1ea1o file .htaccess [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":115021,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7367],"tags":[6154],"class_list":["post-114992","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-co-ban","tag-kien-thuc-wordpress"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/114992","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=114992"}],"version-history":[{"count":3,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/114992\/revisions"}],"predecessor-version":[{"id":115023,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/114992\/revisions\/115023"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/115021"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=114992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/categories?post=114992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=114992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}