{"id":1050,"date":"2012-11-07T14:24:27","date_gmt":"2012-11-07T05:24:27","guid":{"rendered":"http:\/\/www.santoshkori.com\/blog\/?p=1050"},"modified":"2012-11-07T15:51:20","modified_gmt":"2012-11-07T06:51:20","slug":"how-to-wordpress-move-wp-content-folder-to-different-location","status":"publish","type":"post","link":"https:\/\/www.santoshkori.com\/blog\/how-to-wordpress-move-wp-content-folder-to-different-location\/","title":{"rendered":"How to <em><strong>WordPress Move Wp-Content Folder To Different Location<\/strong><\/em>"},"content":{"rendered":"<p>Move the <a href=\"https:\/\/www.santoshkori.com\/blog\/tag\/wordpress\/\">wordpress<\/a>\u00a0<strong>wp-content<\/strong>\u00a0is for <a href=\"https:\/\/www.santoshkori.com\/blog\/tag\/wordpress-security\/\">wordpress security<\/a> if you move this to an unexpected location any hackers looking to target this area won&#8217;t be able to find it, or it will make it more difficult to find.<\/p>\n<p>To change the location of the wp-content is quite simple as the location of this folder can be configured in your\u00a0<strong>wp-config.php file<\/strong>.<!--more--><\/p>\n<p>All you have to do is add a new variable\u00a0<strong>WP_CONTENT_DIR<\/strong>\u00a0and change the location of your wp-content folder.<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\ndefine( 'WP_CONTENT_DIR', $_SERVER&#x5B;'DOCUMENT_ROOT'] . '\/blog\/YourNewDirectory\/wp-content' );\r\n<\/pre>\n<p>To change the location of the wp-content URL there is another variable you can define in the wp-config.<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\ndefine( 'WP_CONTENT_URL', 'https:\/\/www.santoshkori.com\/blog\/content\/wp-content' );\r\n<\/pre>\n<h4>Incoming search terms:<\/h4><ul><li><a href=\"https:\/\/www.santoshkori.com\/blog\/how-to-wordpress-move-wp-content-folder-to-different-location\/\" title=\"Search co in co in co in co in\">Search co in co in co in co in<\/a> (19)<\/li><\/ul>","protected":false},"excerpt":{"rendered":"<p>Move the wordpress\u00a0wp-content\u00a0is for wordpress security if you move this to an unexpected location any hackers looking to target this area won&#8217;t be able to find it, or it will make it more difficult to find. To change the location of the wp-content is quite simple as the location of this folder can be configured [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,184,176],"tags":[499,183,725,500,9],"class_list":["post-1050","post","type-post","status-publish","format-standard","hentry","category-wordpress","category-wordpress-tip-and-tricks","category-wordress-security","tag-move-wordpress-wp-content-folder-to-different-location","tag-quick-tips-to-wordpress-securing","tag-wordpress","tag-wordpress-security","tag-wordpress-tricks"],"_links":{"self":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1050","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/comments?post=1050"}],"version-history":[{"count":5,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1050\/revisions"}],"predecessor-version":[{"id":1054,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1050\/revisions\/1054"}],"wp:attachment":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/media?parent=1050"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/categories?post=1050"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/tags?post=1050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}