{"id":226,"date":"2019-11-05T13:44:08","date_gmt":"2019-11-05T08:14:08","guid":{"rendered":"https:\/\/wpproonline.com\/?p=226"},"modified":"2026-02-26T10:49:01","modified_gmt":"2026-02-26T10:49:01","slug":"how-to-change-your-wordpress-file-and-directory-structure","status":"publish","type":"post","link":"https:\/\/www.digitalhubz.com\/blog\/how-to-change-your-wordpress-file-and-directory-structure\/","title":{"rendered":"How to Change Your WordPress File and Directory Structure"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Thanks to the open-source\u00a0nature of WordPress, anyone \u2013\u00a0as well as\u00a0hackers \u2013\u00a0will research the everyday\u00a0file structure of a WordPress\u00a0website\u00a0and\u00a0understand exactly wherever to begin an attack.<\/p>\n\n<p class=\"wp-block-paragraph\">Fortunately, rearranging your core WordPress file structure is one methodology you&#8217;ll be able to use from your security arsenal to combat hacks and bolster your site\u2019s defenses.<\/p>\n\n<p class=\"wp-block-paragraph\">So during this post, I\u2019m getting to walk you thru 2 ways that you&#8217;ll be able to customize your file structure for single and Multisite installs, furthermore as show you the code you need to bring it all together.<\/p>\n\n<p><!--more--><\/p>\n\n<h3 class=\"wp-block-heading\">All About That Backup<\/h3>\n\n<p class=\"wp-block-paragraph\">Since customizing your file structure will break your web site in one swift move if you\u2019re not careful, making a backup ensures you&#8217;ll be able to restore your web site to its former glory in case things go south.<\/p>\n\n<p class=\"wp-block-paragraph\">You can backup just your files only if you\u2019re pressed for time, but an unabridged, brimming backup is best. You have been forewarned.<\/p>\n\n<p class=\"wp-block-paragraph\">For details on a way to backup your website, verify a number of our alternative posts:<\/p>\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/premium.wpmudev.org\/blog\/backup-with-snapshot\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Backup Your WordPress Website (and Multisite) Using Snapshot<\/a><\/li>\n<li><a href=\"https:\/\/premium.wpmudev.org\/blog\/creating-manual-backup\/\" target=\"_blank\" rel=\"noreferrer noopener\">Creating a Manual Backup of WordPress When It\u2019s Down or Locked<\/a><\/li>\n<li><a href=\"https:\/\/premium.wpmudev.org\/blog\/multisite-backup-solutions\/\" target=\"_blank\" rel=\"noreferrer noopener\">4 Top WordPress Multisite Backup Solutions Tested and Reviewed<\/a><\/li>\n<li><a href=\"https:\/\/premium.wpmudev.org\/blog\/premium-freemium-wordpress-backup-plugins\/\" target=\"_blank\" rel=\"noreferrer noopener\">7 Top Premium and Freemium WordPress Backup Plugins Reviewed<\/a><\/li>\n<\/ul>\n\n<p class=\"wp-block-paragraph\">In the event that your files can\u2019t communicate together with your info to show your website, error messages are printed on the front end of your site with some sensitive information. It is useful to induce obviate this by turning on error work therefore any problems square measure discreetly written in a very log solely you&#8217;ll be able to access.<\/p>\n\n<p class=\"wp-block-paragraph\">For details on a way to disable front error reportage and facultative your error log, check out post Debugging WordPress: <a href=\"https:\/\/premium.wpmudev.org\/blog\/debugging-wordpress-how-to-use-wp_debug\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"How to Use WP_DEBUG (opens in a new tab)\">How to Use WP_DEBUG<\/a>.<\/p>\n\n<p class=\"wp-block-paragraph\">Speaking of front-end errors, reorganizing your file structure takes your site offline for a few minutes while you complete the process so setting up a temporary redirect (302) can help keep your guests (and Google!) happy whereas you turn things up. You can verify post making <a href=\"https:\/\/premium.wpmudev.org\/blog\/creating-301-redirects-wordpress\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Redirects for WordPress (and the most effective Plugins for the Job) (opens in a new tab)\">Redirects for WordPress (and the most effective Plugins for the Job)<\/a> for details on 302 redirects and the way to line them up.<\/p>\n\n<h3 class=\"wp-block-heading\">Changing Your File Directory<\/h3>\n\n<p class=\"wp-block-paragraph\">The first reasonably amendment you&#8217;ll be able to create is to maneuver about 2 files aloof from the foundation of your website to a separate directory. Typically, doing this means you would have to change your site\u2019s URL from www.your-site.com to something similar to www.your-site.com\/core-files\/, but it\u2019s possible to keep your site\u2019s address the way it is whereas still moving your files into a directory.<\/p>\n\n<p class=\"wp-block-paragraph\">Hackers would assume by your universal resource locator that every one your files area unit situated within the root of your install, however, they quickly understand this isn\u2019t the case once they aren\u2019t in a position to hack your site. Since they won\u2019t be able to easily guess where your files are located, they\u2019re more likely to stay untouched.<\/p>\n\n<h4 class=\"wp-block-heading\">Creating a New Directory<\/h4>\n\n<p class=\"wp-block-paragraph\">Start by making a new directory within the root of your web site. you&#8217;ll value more highly to try this with SSH and therefore the program line, FTP with a program like FileZilla or through your management panel\u2019s file manager.<\/p>\n\n<p class=\"wp-block-paragraph\">In cPanel, go to\u00a0<strong>Files &gt; File Manager<\/strong>\u00a0after logging in and locate your site\u2019s files. In the root, click the\u00a0<strong>Folder<\/strong>\u00a0button at the top of the page and enter a name for your new directory.<\/p>\n\n<figure><img decoding=\"async\" src=\"https:\/\/digitalhubz.com\/wp-content\/uploads\/2019\/11\/new-directory-cpanel.png\" alt=\"\" \/>\n<figcaption>Create a new directory for your core files in cPanel.<\/figcaption>\n<\/figure>\n\n<p class=\"wp-block-paragraph\">The idea here is to call your new folder during a manner that isn\u2019t obvious. as an example, don\u2019t name your new directory \u201cwordpress,\u201d \u201cwp-core,\u201d your site\u2019s name or one thing similar. attempt to choose a reputation that wouldn\u2019t be simply guessable for hackers, however that\u2019s still clear to you.<\/p>\n\n<p class=\"wp-block-paragraph\">When you\u2019re done, click produce New Folder. you ought to see it listed among your alternative files. Before you progress any of your files, you wish to update your WordPress address that tells your web site wherever your core files are placed.<\/p>\n\n<h4 class=\"wp-block-heading\">Updating the URL for Your Files<\/h4>\n\n<p class=\"wp-block-paragraph\">Log in to your WordPress site if it\u2019s a single install and go to\u00a0<strong>Settings &gt; General<\/strong>\u00a0in your admin dashboard. Add a slash to the end of your site\u2019s address in the\u00a0<strong>WordPress Address (URL)<\/strong>\u00a0field, followed by the name of the directory you created.\u00a0<em>Don\u2019t<\/em>\u00a0add a trailing slash at the end.<\/p>\n\n<figure><img decoding=\"async\" src=\"https:\/\/digitalhubz.com\/wp-content\/uploads\/2019\/11\/wordpress-address-url.png\" alt=\"\" \/>\n<figcaption>Change your WordPress Address to include your new directory.<\/figcaption>\n<\/figure>\n\n<p class=\"wp-block-paragraph\">Click\u00a0<strong>Save Changes<\/strong>\u00a0at the bottom of the page when you\u2019re done. Your site should be unavailable now, but don\u2019t panic since that\u2019s a normal part of the process.<\/p>\n\n<p class=\"wp-block-paragraph\">If you have installed a Multisite network, you won\u2019t be able to update your WordPress address from your super admin dashboard. You need to hard code it into your\u00a0<em>wp-config.php<\/em>\u00a0file instead.<\/p>\n\n<p class=\"wp-block-paragraph\">You could also choose to do this for single installations as well, but keep in mind that you won\u2019t be able to update the URL in your dashboard afterward.<\/p>\n\n<p class=\"wp-block-paragraph\">Open your\u00a0<em>wp-config.php<\/em>\u00a0file and add the following lines toward the bottom of the page, but before the\u00a0<\/p>\n\n<pre><code>\/* That's all, stop editing! Happy blogging. *\/<\/code><\/pre>\n\n<p class=\"wp-block-paragraph\">Line.<\/p>\n\n<p>https:\/\/gist.github.com\/anupamsahoo\/e9f54c66538405edeb0dcea34446b9e0<\/p>\n\n<p class=\"wp-block-paragraph\">Just be sure to replace\u00a0<code>application<\/code>\u00a0with the actual name of the folder you created. If your domain doesn\u2019t have an\u00a0<a href=\"https:\/\/premium.wpmudev.org\/blog\/adding-free-ssl-https-wordpress\/\" target=\"_blank\" rel=\"noreferrer noopener\">SSL certificated installed<\/a>, you also need to replace the\u00a0<code>https<\/code>\u00a0portion in both lines to\u00a0<code>http<\/code>.<\/p>\n\n<p class=\"wp-block-paragraph\">Save your changes and ignore any error messages or the general unavailability of your site for now. It\u2019s time to move your core files.<\/p>\n\n<h4 class=\"wp-block-heading\">Moving Your Files<\/h4>\n\n<p class=\"wp-block-paragraph\">In cPanel, return to your file manager and therefore the root of your web site. Select all of your files and folders aside from the new folder you only created earlier. Once they\u2019re all highlighted, drag and drop them into your new directory.<\/p>\n\n<figure><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/wpproonline.com\/wppro-app\/app-data\/uploads\/2019\/11\/drag-drop-files-cpanel.gif?fit=1024%2C300&amp;ssl=1\" alt=\"\" \/>\n<figcaption>Drag and drop all your core files into your new folder.<\/figcaption>\n<\/figure>\n\n<p class=\"wp-block-paragraph\">Go into that new folder\u00a0and choose\u00a0your .htaccess file. Click the Copy button at\u00a0the highest\u00a0of the page and edit the file path\u00a0within the\u00a0pop-up to\u00a0reflect the root\u00a0of your install. Click Copy File(s).<\/p>\n\n<p class=\"wp-block-paragraph\">If you don\u2019t see it on the list, click on Settings at the top right of the page and click on the checkbox to indicate hidden files, then save. If you see it within the root of your install, move it and the other hidden files to your new directory.<\/p>\n\n<p class=\"wp-block-paragraph\">Once your .htaccess file has been with success derived back to its original location, copy your index.php go into the precise same method.<\/p>\n\n<h4 class=\"wp-block-heading\">Editing Your Index Page<\/h4>\n\n<p class=\"wp-block-paragraph\">In order for your web site to reflect your new file path, you wish to update your index.php file. choose the one that you simply derived to the root of your web site and click on on the Edit button at the top of the page.<\/p>\n\n<p class=\"wp-block-paragraph\">Find these lines toward the bottom of the file:<\/p>\n\n<p>https:\/\/gist.github.com\/anupamsahoo\/bd3c56f7a15b930d28f4e3a5a18d5203<\/p>\n\n<p class=\"wp-block-paragraph\">Update\u00a0<code>\/wp-blog-header.php<\/code>\u00a0to include your new directory. For example, if your new folder is called\u00a0<code>application<\/code>, you would change the file path to this:\u00a0<code>\/application\/wp-blog-header.php<\/code>.<\/p>\n\n<h4 class=\"wp-block-heading\">Finishing Up<\/h4>\n\n<p class=\"wp-block-paragraph\">Save your changes and log back into your site\u2019s dashboard. The URL you visit should include your new directory.<\/p>\n\n<p class=\"wp-block-paragraph\">For example, if your new directory is named application, you&#8217;d visit www.your-site.com\/application\/wp-admin or www.your-site.com\/application\/wp-login.php.<\/p>\n\n<p class=\"wp-block-paragraph\">Go to Settings &gt; Permalinks and click on the Save Changes button at bottom of the page. This updates your .htaccess file automatically thus all of your posts still show once a user visits them.<\/p>\n\n<p class=\"wp-block-paragraph\">You can additionally consider the Giving WordPress Its Own Directory within the WordPress Codex if you&#8217;d like some additional info.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thanks to the open-source\u00a0nature of WordPress, anyone \u2013\u00a0as well as\u00a0hackers \u2013\u00a0will research the everyday\u00a0file structure of a WordPress\u00a0website\u00a0and\u00a0understand exactly wherever to begin an attack. Fortunately, rearranging your core WordPress file&hellip;<\/p>\n","protected":false},"author":1,"featured_media":294,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[72],"tags":[125],"class_list":["post-226","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-wordpress-security"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Change Your WordPress File and Directory Structure - DigitalHubZ<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.digitalhubz.com\/blog\/how-to-change-your-wordpress-file-and-directory-structure\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Change Your WordPress File and Directory Structure\" \/>\n<meta property=\"og:description\" content=\"Thanks to the open-source\u00a0nature of WordPress, anyone \u2013\u00a0as well as\u00a0hackers \u2013\u00a0will research the everyday\u00a0file structure of a WordPress\u00a0website\u00a0and\u00a0understand exactly wherever to begin an attack. Fortunately, rearranging your core WordPress file&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.digitalhubz.com\/blog\/how-to-change-your-wordpress-file-and-directory-structure\/\" \/>\n<meta property=\"og:site_name\" content=\"DigitalHubZ\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-05T08:14:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T10:49:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2019\/11\/Change-Your-WordPress-File-and-Directory-Structure.png\" \/>\n\t<meta property=\"og:image:width\" content=\"815\" \/>\n\t<meta property=\"og:image:height\" content=\"510\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"DigitalHubZ\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DigitalHubZ\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/how-to-change-your-wordpress-file-and-directory-structure\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/how-to-change-your-wordpress-file-and-directory-structure\\\/\"},\"author\":{\"name\":\"DigitalHubZ\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#\\\/schema\\\/person\\\/5a4074d837d6e5d22d665e5b7ca9e873\"},\"headline\":\"How to Change Your WordPress File and Directory Structure\",\"datePublished\":\"2019-11-05T08:14:08+00:00\",\"dateModified\":\"2026-02-26T10:49:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/how-to-change-your-wordpress-file-and-directory-structure\\\/\"},\"wordCount\":1349,\"commentCount\":6,\"publisher\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/how-to-change-your-wordpress-file-and-directory-structure\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/Change-Your-WordPress-File-and-Directory-Structure.png\",\"keywords\":[\"wordpress security\"],\"articleSection\":[\"Wordpress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/how-to-change-your-wordpress-file-and-directory-structure\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/how-to-change-your-wordpress-file-and-directory-structure\\\/\",\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/how-to-change-your-wordpress-file-and-directory-structure\\\/\",\"name\":\"How to Change Your WordPress File and Directory Structure - DigitalHubZ\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/how-to-change-your-wordpress-file-and-directory-structure\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/how-to-change-your-wordpress-file-and-directory-structure\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/Change-Your-WordPress-File-and-Directory-Structure.png\",\"datePublished\":\"2019-11-05T08:14:08+00:00\",\"dateModified\":\"2026-02-26T10:49:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/how-to-change-your-wordpress-file-and-directory-structure\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/how-to-change-your-wordpress-file-and-directory-structure\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/how-to-change-your-wordpress-file-and-directory-structure\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/Change-Your-WordPress-File-and-Directory-Structure.png\",\"contentUrl\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/Change-Your-WordPress-File-and-Directory-Structure.png\",\"width\":815,\"height\":510},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/how-to-change-your-wordpress-file-and-directory-structure\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Change Your WordPress File and Directory Structure\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/\",\"name\":\"DigitalHubZ\",\"description\":\"Future-Ready Digital Solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#organization\",\"name\":\"DigitalHubZ\",\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/digitalhubz.webp\",\"contentUrl\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/digitalhubz.webp\",\"width\":1232,\"height\":369,\"caption\":\"DigitalHubZ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#\\\/schema\\\/person\\\/5a4074d837d6e5d22d665e5b7ca9e873\",\"name\":\"DigitalHubZ\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g\",\"caption\":\"DigitalHubZ\"},\"sameAs\":[\"https:\\\/\\\/digitalhubz.com\"],\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/author\\\/digi_v1_wp\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Change Your WordPress File and Directory Structure - DigitalHubZ","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.digitalhubz.com\/blog\/how-to-change-your-wordpress-file-and-directory-structure\/","og_locale":"en_US","og_type":"article","og_title":"How to Change Your WordPress File and Directory Structure","og_description":"Thanks to the open-source\u00a0nature of WordPress, anyone \u2013\u00a0as well as\u00a0hackers \u2013\u00a0will research the everyday\u00a0file structure of a WordPress\u00a0website\u00a0and\u00a0understand exactly wherever to begin an attack. Fortunately, rearranging your core WordPress file&hellip;","og_url":"https:\/\/www.digitalhubz.com\/blog\/how-to-change-your-wordpress-file-and-directory-structure\/","og_site_name":"DigitalHubZ","article_published_time":"2019-11-05T08:14:08+00:00","article_modified_time":"2026-02-26T10:49:01+00:00","og_image":[{"width":815,"height":510,"url":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2019\/11\/Change-Your-WordPress-File-and-Directory-Structure.png","type":"image\/png"}],"author":"DigitalHubZ","twitter_card":"summary_large_image","twitter_misc":{"Written by":"DigitalHubZ","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.digitalhubz.com\/blog\/how-to-change-your-wordpress-file-and-directory-structure\/#article","isPartOf":{"@id":"https:\/\/www.digitalhubz.com\/blog\/how-to-change-your-wordpress-file-and-directory-structure\/"},"author":{"name":"DigitalHubZ","@id":"https:\/\/www.digitalhubz.com\/blog\/#\/schema\/person\/5a4074d837d6e5d22d665e5b7ca9e873"},"headline":"How to Change Your WordPress File and Directory Structure","datePublished":"2019-11-05T08:14:08+00:00","dateModified":"2026-02-26T10:49:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.digitalhubz.com\/blog\/how-to-change-your-wordpress-file-and-directory-structure\/"},"wordCount":1349,"commentCount":6,"publisher":{"@id":"https:\/\/www.digitalhubz.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.digitalhubz.com\/blog\/how-to-change-your-wordpress-file-and-directory-structure\/#primaryimage"},"thumbnailUrl":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2019\/11\/Change-Your-WordPress-File-and-Directory-Structure.png","keywords":["wordpress security"],"articleSection":["Wordpress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.digitalhubz.com\/blog\/how-to-change-your-wordpress-file-and-directory-structure\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.digitalhubz.com\/blog\/how-to-change-your-wordpress-file-and-directory-structure\/","url":"https:\/\/www.digitalhubz.com\/blog\/how-to-change-your-wordpress-file-and-directory-structure\/","name":"How to Change Your WordPress File and Directory Structure - DigitalHubZ","isPartOf":{"@id":"https:\/\/www.digitalhubz.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.digitalhubz.com\/blog\/how-to-change-your-wordpress-file-and-directory-structure\/#primaryimage"},"image":{"@id":"https:\/\/www.digitalhubz.com\/blog\/how-to-change-your-wordpress-file-and-directory-structure\/#primaryimage"},"thumbnailUrl":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2019\/11\/Change-Your-WordPress-File-and-Directory-Structure.png","datePublished":"2019-11-05T08:14:08+00:00","dateModified":"2026-02-26T10:49:01+00:00","breadcrumb":{"@id":"https:\/\/www.digitalhubz.com\/blog\/how-to-change-your-wordpress-file-and-directory-structure\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.digitalhubz.com\/blog\/how-to-change-your-wordpress-file-and-directory-structure\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.digitalhubz.com\/blog\/how-to-change-your-wordpress-file-and-directory-structure\/#primaryimage","url":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2019\/11\/Change-Your-WordPress-File-and-Directory-Structure.png","contentUrl":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2019\/11\/Change-Your-WordPress-File-and-Directory-Structure.png","width":815,"height":510},{"@type":"BreadcrumbList","@id":"https:\/\/www.digitalhubz.com\/blog\/how-to-change-your-wordpress-file-and-directory-structure\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.digitalhubz.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Change Your WordPress File and Directory Structure"}]},{"@type":"WebSite","@id":"https:\/\/www.digitalhubz.com\/blog\/#website","url":"https:\/\/www.digitalhubz.com\/blog\/","name":"DigitalHubZ","description":"Future-Ready Digital Solutions","publisher":{"@id":"https:\/\/www.digitalhubz.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.digitalhubz.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.digitalhubz.com\/blog\/#organization","name":"DigitalHubZ","url":"https:\/\/www.digitalhubz.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.digitalhubz.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2023\/03\/digitalhubz.webp","contentUrl":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2023\/03\/digitalhubz.webp","width":1232,"height":369,"caption":"DigitalHubZ"},"image":{"@id":"https:\/\/www.digitalhubz.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.digitalhubz.com\/blog\/#\/schema\/person\/5a4074d837d6e5d22d665e5b7ca9e873","name":"DigitalHubZ","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g","caption":"DigitalHubZ"},"sameAs":["https:\/\/digitalhubz.com"],"url":"https:\/\/www.digitalhubz.com\/blog\/author\/digi_v1_wp\/"}]}},"_links":{"self":[{"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/posts\/226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/comments?post=226"}],"version-history":[{"count":4,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/posts\/226\/revisions"}],"predecessor-version":[{"id":54895,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/posts\/226\/revisions\/54895"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/media\/294"}],"wp:attachment":[{"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/media?parent=226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/categories?post=226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/tags?post=226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}