<center>https://wikitipz.com/media/uploads/wordpress-300x1761.png</center> <br/><p><strong>Không phức tạp như <a title="đổi tên wp-admin và đổi tên wp-includes trong Wordpress" href="https://wikitipz.com/wp-admin/post.php?post=157&action=edit" target="_blank">đổi tên wp-admin và đổi tên wp-includes trong Wordpress</a>, đổi tên wp-content trong Wordpress khá đơn giản. Chỉ cần cấu hình trong file wp-config.php trong thư mục root của website Wordpress là xong. Bài viết sau sẽ hướng dẫn chi tiết cách đổi tên wp-content trong Wordpress.</strong></p> <center> <img title="Hướng dẫn đổi tên wp-content trong WordPress" src="https://wikitipz.com/media/uploads/wordpress-300x176.png" alt="Hướng dẫn đổi tên wp-content trong WordPress" width="300" height="176" /><br/> Hướng dẫn đổi tên wp-content trong WordPress</center> Thư mục wp-content chứa toàn bộ các theme, pluggin, upgrade và các file upload lên (mặc định) của website Wordpress. Với 2 bước đơn giản sau, chúng ta sẽ đổi tên hoàn toàn wp-content trong Wordpress</p> <h2>Hướng dẫn cấu hình đổi tên wp-content trong Wordpress</h2> <h3>Bước 1: Thiết lập lại cấu hình đường dẫn đến thư mục wp-content trong file wp-config.php</h3> - Truy cập vào host của website qua giao thức FTP, ở đây mình dùng phần mềm FileZilla (hoàn toàn miễn phí)</p> - Thêm đoạn mã bên dưới vào cuối của file (hoặc bất kỳ vị trí nào sau dòng <em><?php</em> )</p> <blockquote>define ('WP_CONTENT_FOLDERNAME', 'media'); define ('WP_CONTENT_DIR',ABSPATH.WP_CONTENT_FOLDERNAME); define('WP_SITEURL','http://'.$_SERVER['HTTP_HOST']. '/'); define('WP_CONTENT_URL',WP_SITEURL . WP_CONTENT_FOLDERNAME); define('WP_PLUGIN_DIR',WP_CONTENT_DIR.'/plugins'); define('WP_PLUGIN_URL',WP_CONTENT_URL.'/plugins'); define('UPLOADS',WP_CONTENT_FOLDERNAME.'/files' ); </blockquote> - Lưu lại và up lên host. <a href="https://wikitipz.com/media/uploads/wp-content.jpg"><center><img class="wp-image-165 aligncenter" src="https://wikitipz.com/media/uploads/wp-content-1024x545.jpg" alt="Tips to rename wp-content folder in WordPress" width="717" height="382" /></center><br/></a></p> Bước 2: Đổi tên các file, folder liên quan đến wp-admin thành tên bất kỳ mà bạn muốn (tương ứng với xâu mà bạn đã thay đổi ở bước 1)</h3> Đổi tên thư mục wp-content thành tên mà bạn vừa thiết lập trong file wp-config.php mà bạn vừa cấu hình ở bước 1 (ở ví dụ trên là <em>media</em>). Lưu lại.</p> DONE !</p> Các bạn đã đổi tên wp-content thành công cho website Wordpress của mình. Bây giờ các bạn sẽ thấy đường dẫn đến các file ảnh trong website của bạn có dạng <em>http://yoursite/media/files/image.jpg</em></p> Chúc vui !</p>
post_id | 80,163,543 | ||||||
---|---|---|---|---|---|---|---|
author | wikitips | ||||||
permlink | hngdnitnwp-contenttrongwordpresstipstorenamewp-contentfolderinwordpress-ytadxaagz1 | ||||||
category | haynhat | ||||||
json_metadata | {"community":"steempress","app":"steempress","image":["https:\/\/wikitipz.com\/media\/uploads\/wordpress-300x1761.png"],"tags":["haynhat","huongdan","thuthuatwordpress","wordpress","wp-content"],"canonical_url":"https:\/\/wikitipz.com\/webmaster\/tips-rename-wp-content-folder-wordpress-huong-dan-doi-ten-wp-content-trong-wordpress\/"} | ||||||
created | 2019-09-20 05:55:15 | ||||||
last_update | 2019-09-20 05:55:15 | ||||||
depth | 0 | ||||||
children | 2 | ||||||
net_rshares | 4,929,422,518 | ||||||
last_payout | 2019-09-27 05:55:15 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.000 SBD | ||||||
curator_payout_value | 0.000 SBD | ||||||
pending_payout_value | 0.000 SBD | ||||||
promoted | 0.000 SBD | ||||||
body_length | 2,654 | ||||||
author_reputation | -397,089,943,874 | ||||||
root_title | "Hướng dẫn đổi tên wp-content trong WordPress [Tips to rename wp-content folder in WordPress]" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 SBD | ||||||
percent_steem_dollars | 10,000 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
cheetah | 0 | 16,026,971 | 0.08% | ||
luthor | 0 | 426,036,110 | 100% | ||
thachsanh | 0 | 572,362,772 | 100% | ||
easytipz | 0 | 500,543,982 | 100% | ||
huyencrypto | 0 | 413,198,571 | 100% | ||
wikitips | 0 | 359,700,523 | 100% | ||
mrnewbie | 0 | 400,529,398 | 100% | ||
lifeincrypto | 0 | 463,994,816 | 100% | ||
dgblover | 0 | 409,106,909 | 100% | ||
crypto4lower | 0 | 426,782,240 | 100% | ||
vgcrypto | 0 | 462,164,579 | 100% | ||
nguoiyeutho | 0 | 478,975,647 | 100% |
Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in: https://wikitipz.com/webmaster/tips-rename-wp-content-folder-wordpress-huong-dan-doi-ten-wp-content-trong-wordpress/
post_id | 80,163,547 |
---|---|
author | cheetah |
permlink | cheetah-re-wikitipshngdnitnwp-contenttrongwordpresstipstorenamewp-contentfolderinwordpress-ytadxaagz1 |
category | haynhat |
json_metadata | {} |
created | 2019-09-20 05:55:30 |
last_update | 2019-09-20 05:55:30 |
depth | 1 |
children | 0 |
net_rshares | 4,125,457,253 |
last_payout | 2019-09-27 05:55:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 215 |
author_reputation | 750,854,098,279,735 |
root_title | "Hướng dẫn đổi tên wp-content trong WordPress [Tips to rename wp-content folder in WordPress]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
axeminni | 0 | 4,125,457,253 | 68% |
Congratulations @wikitips! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) : <table><tr><td><img src="https://steemitimages.com/60x70/http://steemitboard.com/@wikitips/posts.png?201909200608"></td><td>You published more than 30 posts. Your next target is to reach 40 posts.</td></tr> </table> <sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@wikitips) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=wikitips)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> ###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
post_id | 80,164,223 |
---|---|
author | steemitboard |
permlink | steemitboard-notify-wikitips-20190920t063411000z |
category | haynhat |
json_metadata | {"image":["https:\/\/steemitboard.com\/img\/notify.png"]} |
created | 2019-09-20 06:34:09 |
last_update | 2019-09-20 06:34:09 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2019-09-27 06:34:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 838 |
author_reputation | 38,705,954,145,809 |
root_title | "Hướng dẫn đổi tên wp-content trong WordPress [Tips to rename wp-content folder in WordPress]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |