
{"id":9552,"date":"2024-12-27T14:26:02","date_gmt":"2024-12-27T07:26:02","guid":{"rendered":"https:\/\/tapchicntt.com\/?p=9552"},"modified":"2025-01-03T10:53:37","modified_gmt":"2025-01-03T03:53:37","slug":"wordpress-huong-dan-thay-doi-thu-muc-media-mac-dinh-trong-wordpress","status":"publish","type":"post","link":"https:\/\/tapchicntt.com\/wordpress-huong-dan-thay-doi-thu-muc-media-mac-dinh-trong-wordpress\/","title":{"rendered":"[WordPress] H\u01b0\u1edbng d\u1eabn thay \u0111\u1ed5i th\u01b0 m\u1ee5c media m\u1eb7c \u0111\u1ecbnh trong WordPress"},"content":{"rendered":"\n<p>C\u00f3 nhi\u1ec1u l\u00fd do khi\u1ebfn b\u1ea1n mu\u1ed1n thay \u0111\u1ed5i th\u01b0 m\u1ee5c m\u1eb7c \u0111\u1ecbnh \u0111\u1ec3 l\u01b0u tr\u1eef media (h\u00ecnh \u1ea3nh, video,&#8230;) trong WordPress:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>T\u1ed5 ch\u1ee9c t\u1ed1t h\u01a1n:<\/strong> Ph\u00e2n lo\u1ea1i media theo d\u1ef1 \u00e1n, lo\u1ea1i file, ho\u1eb7c theo th\u1eddi gian.<\/li>\n\n\n\n<li><strong>T\u0103ng t\u1ed1c \u0111\u1ed9 t\u1ea3i trang:<\/strong> N\u1ebfu th\u01b0 m\u1ee5c media qu\u00e1 l\u1edbn v\u00e0 n\u1eb1m tr\u00ean c\u00f9ng m\u1ed9t ph\u00e2n v\u00f9ng v\u1edbi WordPress, vi\u1ec7c di chuy\u1ec3n n\u00f3 sang m\u1ed9t \u1ed5 c\u1ee9ng kh\u00e1c c\u00f3 th\u1ec3 c\u1ea3i thi\u1ec7n t\u1ed1c \u0111\u1ed9.<\/li>\n\n\n\n<li><strong>Sao l\u01b0u d\u1ec5 d\u00e0ng h\u01a1n:<\/strong> Khi b\u1ea1n mu\u1ed1n sao l\u01b0u d\u1eef li\u1ec7u, vi\u1ec7c t\u00e1ch ri\u00eang th\u01b0 m\u1ee5c media s\u1ebd gi\u00fap b\u1ea1n qu\u1ea3n l\u00fd qu\u00e1 tr\u00ecnh n\u00e0y hi\u1ec7u qu\u1ea3 h\u01a1n.<\/li>\n<\/ul>\n\n\n\n<p><strong>L\u01b0u \u00fd quan tr\u1ecdng:<\/strong> Tr\u01b0\u1edbc khi th\u1ef1c hi\u1ec7n b\u1ea5t k\u1ef3 thay \u0111\u1ed5i n\u00e0o, h\u00e3y t\u1ea1o m\u1ed9t b\u1ea3n sao l\u01b0u to\u00e0n b\u1ed9 website c\u1ee7a b\u1ea1n \u0111\u1ec3 ph\u00f2ng tr\u01b0\u1eddng h\u1ee3p x\u1ea3y ra s\u1ef1 c\u1ed1.<\/p>\n\n\n\n<p>S\u1eeda file c\u1ea5u h\u00ecnh <strong>wp-config.php<\/strong><\/p>\n\n\n\n<p><strong>C\u00e1ch th\u1ef1c hi\u1ec7n:<\/strong><\/p>\n\n\n\n<p><strong>Truy c\u1eadp file wp-config.php:<\/strong> S\u1eed d\u1ee5ng FTP client ho\u1eb7c qu\u1ea3n l\u00fd file c\u1ee7a hosting \u0111\u1ec3 truy c\u1eadp v\u00e0o file n\u00e0y.<\/p>\n\n\n\n<p><strong>Th\u00eam \u0111o\u1ea1n code:<\/strong> Th\u00eam \u0111o\u1ea1n code sau v\u00e0o cu\u1ed1i file wp-config.php, thay th\u1ebf <code>'your\/new\/upload\/path'<\/code> b\u1eb1ng \u0111\u01b0\u1eddng d\u1eabn \u0111\u1ebfn th\u01b0 m\u1ee5c m\u1edbi b\u1ea1n mu\u1ed1n t\u1ea1o:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\ndefine(&#039;UPLOADS&#039;, &#039;your\/new\/upload\/path&#039;);\n<\/pre><\/div>\n\n\n<p>V\u00ed d\u1ee5:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\ndefine(&#039;UPLOADS&#039;, &#039;asset\/uploads&#039;);\n<\/pre><\/div>\n\n\n<p><strong>T\u1ea1o th\u01b0 m\u1ee5c m\u1edbi:<\/strong> T\u1ea1o th\u01b0 m\u1ee5c m\u1edbi theo \u0111\u00fang \u0111\u01b0\u1eddng d\u1eabn b\u1ea1n \u0111\u00e3 \u0111\u1ecbnh ngh\u0129a \u1edf tr\u00ean.<\/p>\n\n\n\n<p><strong>C\u1ea5p quy\u1ec1n:<\/strong> \u0110\u1ea3m b\u1ea3o th\u01b0 m\u1ee5c m\u1edbi c\u00f3 quy\u1ec1n \u0111\u1ecdc v\u00e0 ghi.<\/p>\n\n\n\n<p><strong>L\u01b0u \u00fd:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u0110\u01b0\u1eddng d\u1eabn tuy\u1ec7t \u0111\u1ed1i:<\/strong> \u0110\u01b0\u1eddng d\u1eabn b\u1ea1n \u0111\u1ecbnh ngh\u0129a ph\u1ea3i l\u00e0 \u0111\u01b0\u1eddng d\u1eabn tuy\u1ec7t \u0111\u1ed1i, b\u1eaft \u0111\u1ea7u t\u1eeb g\u1ed1c c\u1ee7a h\u1ec7 th\u1ed1ng file.<\/li>\n\n\n\n<li><strong>Quy\u1ec1n truy c\u1eadp:<\/strong> Ki\u1ec3m tra xem server c\u1ee7a b\u1ea1n c\u00f3 cho ph\u00e9p WordPress vi\u1ebft v\u00e0o th\u01b0 m\u1ee5c m\u1edbi hay kh\u00f4ng.<\/li>\n\n\n\n<li><strong>C\u01a1 s\u1edf d\u1eef li\u1ec7u:<\/strong> Vi\u1ec7c thay \u0111\u1ed5i th\u01b0 m\u1ee5c ch\u1ec9 \u1ea3nh h\u01b0\u1edfng \u0111\u1ebfn c\u00e1c file media m\u1edbi upload. C\u00e1c file c\u0169 v\u1eabn n\u1eb1m \u1edf th\u01b0 m\u1ee5c c\u0169. \u0110\u1ec3 di chuy\u1ec3n t\u1ea5t c\u1ea3 c\u00e1c file, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00e1c c\u00f4ng c\u1ee5 sao ch\u00e9p v\u00e0 di chuy\u1ec3n file.<\/li>\n<\/ul>\n\n\n\n<p><strong>L\u1eddi khuy\u00ean:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>T\u1ea1o b\u1ea3n sao l\u01b0u:<\/strong> Lu\u00f4n t\u1ea1o b\u1ea3n sao l\u01b0u tr\u01b0\u1edbc khi th\u1ef1c hi\u1ec7n b\u1ea5t k\u1ef3 thay \u0111\u1ed5i n\u00e0o.<\/li>\n\n\n\n<li><strong>Ki\u1ec3m tra k\u1ef9:<\/strong> Ki\u1ec3m tra l\u1ea1i \u0111\u01b0\u1eddng d\u1eabn v\u00e0 c\u00e1c c\u00e0i \u0111\u1eb7t tr\u01b0\u1edbc khi l\u01b0u file wp-config.php.<\/li>\n\n\n\n<li><strong>Y\u00eau c\u1ea7u h\u1ed7 tr\u1ee3:<\/strong> N\u1ebfu b\u1ea1n kh\u00f4ng t\u1ef1 tin, h\u00e3y nh\u1edd \u0111\u1ebfn s\u1ef1 tr\u1ee3 gi\u00fap c\u1ee7a ng\u01b0\u1eddi c\u00f3 kinh nghi\u1ec7m ho\u1eb7c nh\u00e0 cung c\u1ea5p hosting.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>C\u00f3 nhi\u1ec1u l\u00fd do khi\u1ebfn b\u1ea1n mu\u1ed1n thay \u0111\u1ed5i th\u01b0 m\u1ee5c m\u1eb7c \u0111\u1ecbnh \u0111\u1ec3 l\u01b0u tr\u1eef media (h\u00ecnh \u1ea3nh, video,&#8230;) [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":6979,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[143],"tags":[],"class_list":["post-9552","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thu-thuat-wordpress"],"views":747,"_links":{"self":[{"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/posts\/9552","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=9552"}],"version-history":[{"count":3,"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/posts\/9552\/revisions"}],"predecessor-version":[{"id":9559,"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/posts\/9552\/revisions\/9559"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/media\/6979"}],"wp:attachment":[{"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/media?parent=9552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/categories?post=9552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/tags?post=9552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}