Hướng dẫn đổi tên wp-content trong WordPress [Tips to rename wp-content folder in WordPress] by wikitips

View this thread on steempeak.com
· @wikitips ·
Hướng dẫn đổi tên wp-content trong WordPress [Tips to rename wp-content folder in WordPress]
<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&amp;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>&lt;?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>
👍  , , , , , , , , , , ,
properties (23)
post_id80,163,543
authorwikitips
permlinkhngdnitnwp-contenttrongwordpresstipstorenamewp-contentfolderinwordpress-ytadxaagz1
categoryhaynhat
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\/"}
created2019-09-20 05:55:15
last_update2019-09-20 05:55:15
depth0
children2
net_rshares4,929,422,518
last_payout2019-09-27 05:55:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,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
0.
accountsteempress
weight1,500
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (12)
@cheetah ·
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/
👍  
properties (23)
post_id80,163,547
authorcheetah
permlinkcheetah-re-wikitipshngdnitnwp-contenttrongwordpresstipstorenamewp-contentfolderinwordpress-ytadxaagz1
categoryhaynhat
json_metadata{}
created2019-09-20 05:55:30
last_update2019-09-20 05:55:30
depth1
children0
net_rshares4,125,457,253
last_payout2019-09-27 05:55:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length215
author_reputation750,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_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@steemitboard ·
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!
properties (22)
post_id80,164,223
authorsteemitboard
permlinksteemitboard-notify-wikitips-20190920t063411000z
categoryhaynhat
json_metadata{"image":["https:\/\/steemitboard.com\/img\/notify.png"]}
created2019-09-20 06:34:09
last_update2019-09-20 06:34:09
depth1
children0
net_rshares0
last_payout2019-09-27 06:34:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length838
author_reputation38,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_payout1,000,000.000 SBD
percent_steem_dollars10,000