{"id":2728,"date":"2016-05-17T11:12:21","date_gmt":"2016-05-17T11:12:21","guid":{"rendered":"https:\/\/sgis.co.uk\/blog\/?p=2728"},"modified":"2020-12-01T09:36:07","modified_gmt":"2020-12-01T09:36:07","slug":"change-wp-content-paths-on-wordpress","status":"publish","type":"post","link":"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/","title":{"rendered":"Change wp-content paths on WordPress"},"content":{"rendered":"<p>It&#8217;s possible to change the name and location of WordPress&#8217;s wp-content folder by making changes to your file structure and wp-config.php file. The wp-content folder holds all themes, uploads and plugins. You may want to do this to hide the fact the site is using WordPress or you may just want to tidy up the URLs in the source code.<\/p>\n<p><strong>Here&#8217;s how it&#8217;s done:<\/strong><\/p>\n<ol class=\"step-by-step\">\n<li>\n<h3>Take a full backup<\/h3>\n<p>Incorrect changes can leave your site inaccessible so remember to take a <a href=\"https:\/\/sgis.co.uk\/blog\/2010\/07\/backup-your-website\/\">full site back up<\/a> before making any changes.<\/li>\n<li>\n<h3>Change the directory name<\/h3>\n<p>Once you have a backup you can then give the wp-content folder a new name. You can either do this via FTP or via the File Manager option from the hosting control panel &#8211; <strong>please be aware that this change will temporarily bring the site down.<\/strong><\/li>\n<li>\n<h3>Let WordPress know about the change<\/h3>\n<p>To let WordPress know about the new directory you need to add the below lines to your wp-config.php file &#8211; replace <strong>new-name<\/strong> for the directory name you gave in step 2.<\/p>\n<pre>define( 'WP_CONTENT_DIR', dirname(__FILE__) . '\/new-name' );\ndefine( 'WP_CONTENT_URL', '\/\/' . $_SERVER['SERVER_NAME'] . '\/new-name' );\n<\/pre>\n<\/li>\n<li>\n<h3>The new directory will now be live<\/h3>\n<p>WordPress will now use the renamed directory as the content folder.<\/li>\n<li>\n<h3>Change plugin folder too?<\/h3>\n<p>It&#8217;s also possible to change the name of the plugin folder which sits in the content folder. To do this take the same steps but the two lines of code are slightly different which are below &#8211; replace <strong>new-name<\/strong> for the new plugin directory name given<\/p>\n<pre>define( 'WP_PLUGIN_DIR', dirname(__FILE__) . '\/new-name' );\ndefine( 'WP_PLUGIN_URL', '\/\/' . $_SERVER['SERVER_NAME'] . '\/new-name' );\n<\/pre>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s possible to change the name and location of WordPress&#8217;s wp-content folder by making changes to your file structure and &#8230;<\/p>\n<p><a href=\"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/\" target=\"_top\">Read article<\/a><\/p>\n","protected":false},"author":1,"featured_media":2541,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[27],"class_list":["post-2728","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-design-guides","tag-wordpress"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"SGIS\"\/>\n\t<meta name=\"keywords\" content=\"wordpress\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"SGIS web hosting blog | Web hosting updates and advice\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Change wp-content paths on WordPress | SGIS updates &amp; advice\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2016-05-17T11:12:21+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-12-01T09:36:07+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Change wp-content paths on WordPress | SGIS updates &amp; advice\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/2016\\\/05\\\/change-wp-content-paths-on-wordpress\\\/#article\",\"name\":\"Change wp-content paths on WordPress | SGIS updates & advice\",\"headline\":\"Change wp-content paths on WordPress\",\"author\":{\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/author\\\/sgadmin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/08\\\/wordpress-bg.png\",\"width\":499,\"height\":499},\"datePublished\":\"2016-05-17T11:12:21+00:00\",\"dateModified\":\"2020-12-01T09:36:07+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/2016\\\/05\\\/change-wp-content-paths-on-wordpress\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/2016\\\/05\\\/change-wp-content-paths-on-wordpress\\\/#webpage\"},\"articleSection\":\"Web Design Guides, WordPress\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/2016\\\/05\\\/change-wp-content-paths-on-wordpress\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/category\\\/web-design-guides\\\/#listItem\",\"name\":\"Web Design Guides\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/category\\\/web-design-guides\\\/#listItem\",\"position\":2,\"name\":\"Web Design Guides\",\"item\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/category\\\/web-design-guides\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/2016\\\/05\\\/change-wp-content-paths-on-wordpress\\\/#listItem\",\"name\":\"Change wp-content paths on WordPress\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/2016\\\/05\\\/change-wp-content-paths-on-wordpress\\\/#listItem\",\"position\":3,\"name\":\"Change wp-content paths on WordPress\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/category\\\/web-design-guides\\\/#listItem\",\"name\":\"Web Design Guides\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/#organization\",\"name\":\"SGIS Hosting\",\"description\":\"Web hosting updates and advice\",\"url\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/logo.png\",\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/2016\\\/05\\\/change-wp-content-paths-on-wordpress\\\/#organizationLogo\",\"width\":250,\"height\":250},\"image\":{\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/2016\\\/05\\\/change-wp-content-paths-on-wordpress\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/author\\\/sgadmin\\\/#author\",\"url\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/author\\\/sgadmin\\\/\",\"name\":\"SGIS\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/2016\\\/05\\\/change-wp-content-paths-on-wordpress\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c35932044581e2e15da4796e5adf8e22f5cd6b2a2e65dd6e7684636ab187e609?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"SGIS\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/2016\\\/05\\\/change-wp-content-paths-on-wordpress\\\/#webpage\",\"url\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/2016\\\/05\\\/change-wp-content-paths-on-wordpress\\\/\",\"name\":\"Change wp-content paths on WordPress | SGIS updates & advice\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/2016\\\/05\\\/change-wp-content-paths-on-wordpress\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/author\\\/sgadmin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/author\\\/sgadmin\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/08\\\/wordpress-bg.png\",\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/2016\\\/05\\\/change-wp-content-paths-on-wordpress\\\/#mainImage\",\"width\":499,\"height\":499},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/2016\\\/05\\\/change-wp-content-paths-on-wordpress\\\/#mainImage\"},\"datePublished\":\"2016-05-17T11:12:21+00:00\",\"dateModified\":\"2020-12-01T09:36:07+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/\",\"name\":\"SGIS web hosting blog\",\"description\":\"Web hosting updates and advice\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/sgis.co.uk\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Change wp-content paths on WordPress | SGIS updates & advice","description":"","canonical_url":"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/","robots":"max-image-preview:large","keywords":"wordpress","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/#article","name":"Change wp-content paths on WordPress | SGIS updates & advice","headline":"Change wp-content paths on WordPress","author":{"@id":"https:\/\/sgis.co.uk\/blog\/author\/sgadmin\/#author"},"publisher":{"@id":"https:\/\/sgis.co.uk\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/sgis.co.uk\/blog\/wp-content\/uploads\/2014\/08\/wordpress-bg.png","width":499,"height":499},"datePublished":"2016-05-17T11:12:21+00:00","dateModified":"2020-12-01T09:36:07+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/#webpage"},"isPartOf":{"@id":"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/#webpage"},"articleSection":"Web Design Guides, WordPress"},{"@type":"BreadcrumbList","@id":"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/sgis.co.uk\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/sgis.co.uk\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/sgis.co.uk\/blog\/category\/web-design-guides\/#listItem","name":"Web Design Guides"}},{"@type":"ListItem","@id":"https:\/\/sgis.co.uk\/blog\/category\/web-design-guides\/#listItem","position":2,"name":"Web Design Guides","item":"https:\/\/sgis.co.uk\/blog\/category\/web-design-guides\/","nextItem":{"@type":"ListItem","@id":"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/#listItem","name":"Change wp-content paths on WordPress"},"previousItem":{"@type":"ListItem","@id":"https:\/\/sgis.co.uk\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/#listItem","position":3,"name":"Change wp-content paths on WordPress","previousItem":{"@type":"ListItem","@id":"https:\/\/sgis.co.uk\/blog\/category\/web-design-guides\/#listItem","name":"Web Design Guides"}}]},{"@type":"Organization","@id":"https:\/\/sgis.co.uk\/blog\/#organization","name":"SGIS Hosting","description":"Web hosting updates and advice","url":"https:\/\/sgis.co.uk\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/sgis.co.uk\/blog\/wp-content\/uploads\/2024\/03\/logo.png","@id":"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/#organizationLogo","width":250,"height":250},"image":{"@id":"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/sgis.co.uk\/blog\/author\/sgadmin\/#author","url":"https:\/\/sgis.co.uk\/blog\/author\/sgadmin\/","name":"SGIS","image":{"@type":"ImageObject","@id":"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/c35932044581e2e15da4796e5adf8e22f5cd6b2a2e65dd6e7684636ab187e609?s=96&d=mm&r=g","width":96,"height":96,"caption":"SGIS"}},{"@type":"WebPage","@id":"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/#webpage","url":"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/","name":"Change wp-content paths on WordPress | SGIS updates & advice","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/sgis.co.uk\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/#breadcrumblist"},"author":{"@id":"https:\/\/sgis.co.uk\/blog\/author\/sgadmin\/#author"},"creator":{"@id":"https:\/\/sgis.co.uk\/blog\/author\/sgadmin\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/sgis.co.uk\/blog\/wp-content\/uploads\/2014\/08\/wordpress-bg.png","@id":"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/#mainImage","width":499,"height":499},"primaryImageOfPage":{"@id":"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/#mainImage"},"datePublished":"2016-05-17T11:12:21+00:00","dateModified":"2020-12-01T09:36:07+00:00"},{"@type":"WebSite","@id":"https:\/\/sgis.co.uk\/blog\/#website","url":"https:\/\/sgis.co.uk\/blog\/","name":"SGIS web hosting blog","description":"Web hosting updates and advice","inLanguage":"en-US","publisher":{"@id":"https:\/\/sgis.co.uk\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"SGIS web hosting blog | Web hosting updates and advice","og:type":"article","og:title":"Change wp-content paths on WordPress | SGIS updates &amp; advice","og:url":"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/","article:published_time":"2016-05-17T11:12:21+00:00","article:modified_time":"2020-12-01T09:36:07+00:00","twitter:card":"summary","twitter:title":"Change wp-content paths on WordPress | SGIS updates &amp; advice"},"aioseo_meta_data":{"post_id":"2728","title":null,"description":"","keywords":"","keyphrases":null,"primary_term":null,"canonical_url":"","og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-07-05 09:38:28","updated":"2022-11-08 11:58:47","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/sgis.co.uk\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/sgis.co.uk\/blog\/category\/web-design-guides\/\" title=\"Web Design Guides\">Web Design Guides<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tChange wp-content paths on WordPress\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/sgis.co.uk\/blog\/"},{"label":"Web Design Guides","link":"https:\/\/sgis.co.uk\/blog\/category\/web-design-guides\/"},{"label":"Change wp-content paths on WordPress","link":"https:\/\/sgis.co.uk\/blog\/2016\/05\/change-wp-content-paths-on-wordpress\/"}],"_links":{"self":[{"href":"https:\/\/sgis.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2728","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sgis.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sgis.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sgis.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sgis.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=2728"}],"version-history":[{"count":9,"href":"https:\/\/sgis.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2728\/revisions"}],"predecessor-version":[{"id":2928,"href":"https:\/\/sgis.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2728\/revisions\/2928"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sgis.co.uk\/blog\/wp-json\/wp\/v2\/media\/2541"}],"wp:attachment":[{"href":"https:\/\/sgis.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=2728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sgis.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=2728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sgis.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=2728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}