{"id":13581,"date":"2024-09-23T13:41:37","date_gmt":"2024-09-23T13:41:37","guid":{"rendered":"https:\/\/www.bodhost.com\/kb\/?p=13581"},"modified":"2026-03-16T06:25:37","modified_gmt":"2026-03-16T06:25:37","slug":"how-to-redirect-your-root-directory-to-a-subdirectory","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/how-to-redirect-your-root-directory-to-a-subdirectory\/","title":{"rendered":"How to Redirect your Root Directory to a Subdirectory"},"content":{"rendered":"<p>If you have a website or web application where the main content is located in a subdirectory rather than the root directory, it&#8217;s often desirable to redirect the root directory to the subdirectory. This can improve the user experience, make your site structure more intuitive, and ensure all traffic is directed to the correct location.<\/p>\n<p>In this knowledge-based article, we&#8217;ll explore the different methods you can use to redirect your root directory to a subdirectory, covering both server-side and client-side approaches.<\/p>\n<h5><span style=\"text-decoration: underline;\"><strong>Server-side Redirection<\/strong><\/span><\/h5>\n<p>Server-side redirection is the most common and recommended approach for redirecting the root directory to a subdirectory. This method is typically implemented at the web server level and ensures that the redirection happens transparently for the user.<\/p>\n<h5><span style=\"text-decoration: underline;\"><strong>Apache (mod_rewrite)<\/strong><\/span><\/h5>\n<p>If you&#8217;re using the <a href=\"https:\/\/www.bodhost.com\/kb\/apache-web-server\/\" target=\"_blank\" rel=\"noopener\">Apache web server<\/a>, you can leverage the `<strong>mod_rewrite<\/strong>` module to handle the redirection. Here&#8217;s an example of how to configure the `<strong>.htaccess<\/strong>` file:<\/p>\n<blockquote><p>RewriteEngine On<br \/>\nRewriteRule ^$ \/subdirectory [L]<\/p><\/blockquote>\n<p>In this example, the `<strong>RewriteRule<\/strong>` directive will redirect the root directory (`<strong>^$`<\/strong>) to the `<strong>\/subdirectory<\/strong>` path. The `<strong>[L]<\/strong>` flag ensures that the rewrite process stops after this rule is executed.<\/p>\n<h5><span style=\"text-decoration: underline;\"><strong>Nginx<\/strong><\/span><\/h5>\n<p>For Nginx, you can use the `<strong>return<\/strong>` directive to achieve the same result:<\/p>\n<blockquote><p>server {<br \/>\nlisten 80;<br \/>\nserver_name example.com;<\/p>\n<p>location \/ {<br \/>\nreturn 302 $scheme:\/\/$server_name\/subdirectory;<br \/>\n}<br \/>\n}<\/p><\/blockquote>\n<p>This configuration will redirect the root directory to the `<strong>\/subdirectory<\/strong>` path using a 302 (temporary) redirect.<\/p>\n<h5><span style=\"text-decoration: underline;\"><strong>Microsoft IIS<\/strong><\/span><\/h5>\n<p>In Microsoft IIS, you can create a URL Rewrite rule to redirect the root directory to a subdirectory. Here&#8217;s an example of how to do this using the URL Rewrite module:<\/p>\n<p>1. Open the Internet Information Services (IIS) Manager.<br \/>\n2. Select the website you want to configure.<br \/>\n3. Double-click the &#8220;<strong>URL Rewrite<\/strong>&#8221; icon in the &#8220;<strong>IIS<\/strong>&#8221; section.<br \/>\n4. Click &#8220;<strong>Add Rule(s)<\/strong>&#8221; in the Actions pane.<br \/>\n5. Select the &#8220;<strong>Blank Rule<\/strong>&#8221; template and click &#8220;<strong>OK<\/strong>&#8220;.<br \/>\n6. Configure the rule with the following settings:<\/p>\n<p>&#8211; Name: &#8220;<strong>Redirect root to subdirectory<\/strong>&#8221;<br \/>\n&#8211; Match URL: `<strong>^$<\/strong>`<br \/>\n&#8211; Action type: &#8220;<strong>Redirect<\/strong>&#8221;<br \/>\n&#8211; Redirect URL: `<strong>\/subdirectory<\/strong>`<\/p>\n<p>Save the changes, and the redirection will be applied.<\/p>\n<h5><span style=\"text-decoration: underline;\"><strong>Client-side Redirection<\/strong><\/span><\/h5>\n<p>While server-side redirection is the preferred approach, you can also implement client-side redirection using HTML or JavaScript. This method is less efficient and should only used as a fallback or for specific use cases.<\/p>\n<p><strong>HTML Meta Refresh<\/strong><\/p>\n<p>You can use the HTML `<strong>&lt;meta&gt;<\/strong>` tag with the `<strong>http-equiv=&#8221;refresh<\/strong>&#8220;` attribute to perform a client-side redirect:<\/p>\n<blockquote><p>html<br \/>\n&lt;meta http-equiv=&#8221;refresh&#8221; content=&#8221;0; URL=\/subdirectory&#8221;&gt;<\/p><\/blockquote>\n<p>This will redirect the user to the `<strong>\/subdirectory<\/strong>` path immediately after the page loads.<\/p>\n<h5><span style=\"text-decoration: underline;\"><strong>JavaScript Redirect<\/strong><\/span><\/h5>\n<p>Alternatively, you can use JavaScript to perform the redirection:<\/p>\n<blockquote><p>html<br \/>\n&lt;script&gt;<br \/>\nwindow.location.replace(&#8216;\/subdirectory&#8217;);<br \/>\n&lt;\/script&gt;<\/p><\/blockquote>\n<p>This JavaScript code will redirect the user to the `<strong>\/subdirectory<\/strong>` path as soon as the page loaded.<\/p>\n<h5><span style=\"text-decoration: underline;\"><strong>Considerations<\/strong><\/span><\/h5>\n<p>When choosing the appropriate redirection method, keep the following points in mind:<\/p>\n<p>&#8211; Server-side redirection is generally preferred as more efficient and transparent for the user.<br \/>\n&#8211; Client-side redirection may introduce a slight delay and can less reliable, but it can be useful in specific scenarios or as a fallback.<br \/>\n&#8211; Ensure that you update any internal links or references to the root directory to point to the correct subdirectory path.<br \/>\n&#8211; Test your redirection thoroughly to ensure it works as expected across different browsers and devices.<br \/>\n&#8211; Monitor your website analytics to ensure the redirection is not causing any unexpected issues or affecting user behavior.<\/p>\n<p>By implementing the right redirection strategy, you can seamlessly guide your users to the correct location and improve the overall user experience of your website or web application.<\/p>\n<h4><strong>FAQ&#8217;s<\/strong><\/h4>\n<ol>\n<li><strong>What is the purpose of the root (\/) directory in Linux?<br \/>\n<\/strong>The root (\/) directory is the top level of the Linux file system. All other directories and files branch from it. It organizes system files, user data, applications, and configuration folders in one structured hierarchy.<\/li>\n<li><strong>Can I redirect a domain to another domain?<br \/>\n<\/strong>Yes, a domain can be redirected to another domain using server configuration or domain settings. This is commonly done with a 301 or 302 redirect, which automatically sends visitors from one website address to another.<\/li>\n<li><strong>How do I move WordPress to a subdirectory?<br \/>\n<\/strong>To move WordPress to a subdirectory, create a new folder inside your main site directory and move the WordPress files there. Then update the site URL settings and adjust configuration files to reflect the new location.<\/li>\n<li><strong>What is root directory and subdirectory?<br \/>\n<\/strong>The root directory is the main starting point of a file system, where all files and folders begin. A subdirectory is a folder located inside another directory, helping organize files in a structured way.<\/li>\n<li><strong>How to set root directory?<br \/>\n<\/strong>You can set the root directory by defining the main folder where your website files are stored. This is usually configured in server settings, hosting control panels, or web server configuration files.<\/li>\n<li><strong>Should I use sudo or root?<br \/>\n<\/strong>It is generally safer to use sudo instead of logging in as the root user. Sudo allows you to run specific administrative commands while keeping the system protected from accidental or harmful changes.<\/li>\n<\/ol>\n<p><script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [{\n    \"@type\": \"Question\",\n    \"name\": \"What is the purpose of the root (\/) directory in Linux?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"The root (\/) directory is the top level of the Linux file system. All other directories and files branch from it. It organizes system files, user data, applications, and configuration folders in one structured hierarchy.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"Can I redirect a domain to another domain?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"Yes, a domain can be redirected to another domain using server configuration or domain settings. This is commonly done with a 301 or 302 redirect, which automatically sends visitors from one website address to another.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"How do I move WordPress to a subdirectory?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"To move WordPress to a subdirectory, create a new folder inside your main site directory and move the WordPress files there. Then update the site URL settings and adjust configuration files to reflect the new location.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"What is root directory and subdirectory?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"The root directory is the main starting point of a file system, where all files and folders begin. A subdirectory is a folder located inside another directory, helping organize files in a structured way.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"How to set root directory?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"You can set the root directory by defining the main folder where your website files are stored. This is usually configured in server settings, hosting control panels, or web server configuration files.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"Should I use sudo or root?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"It is generally safer to use sudo instead of logging in as the root user. Sudo allows you to run specific administrative commands while keeping the system protected from accidental or harmful changes.\"\n    }\n  }]\n}\n<\/script><\/p>\n<p>Read Also: <a href=\"https:\/\/www.bodhost.com\/kb\/where-is-apaches-default-document-root-directory\/\" target=\"_blank\" rel=\"noopener\">Where is Apache\u2019s Default Document Root Directory?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have a website or web application where the main content is located in a subdirectory rather than the root directory, it&#8217;s often desirable to redirect the root directory&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/how-to-redirect-your-root-directory-to-a-subdirectory\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[837],"tags":[],"class_list":["post-13581","post","type-post","status-publish","format-standard","hentry","category-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Redirect your Root Directory to a Subdirectory | bodHOST<\/title>\n<meta name=\"description\" content=\"In this knowledge-based article, we&#039;ll explore the different methods you can use to redirect your root directory to a subdirectory.\" \/>\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.bodhost.com\/kb\/how-to-redirect-your-root-directory-to-a-subdirectory\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Redirect your Root Directory to a Subdirectory | bodHOST\" \/>\n<meta property=\"og:description\" content=\"In this knowledge-based article, we&#039;ll explore the different methods you can use to redirect your root directory to a subdirectory.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/how-to-redirect-your-root-directory-to-a-subdirectory\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2024-09-23T13:41:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-16T06:25:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/09\/How-to-Redirect-your-Root-Directory-to-a-Subdirectory-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Paul Lopez\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/09\/How-to-Redirect-your-Root-Directory-to-a-Subdirectory-2.png\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul Lopez\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-redirect-your-root-directory-to-a-subdirectory\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-redirect-your-root-directory-to-a-subdirectory\\\/\"},\"author\":{\"name\":\"Paul Lopez\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/566ccff9a2fae4af852be8097b179813\"},\"headline\":\"How to Redirect your Root Directory to a Subdirectory\",\"datePublished\":\"2024-09-23T13:41:37+00:00\",\"dateModified\":\"2026-03-16T06:25:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-redirect-your-root-directory-to-a-subdirectory\\\/\"},\"wordCount\":857,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"articleSection\":[\"Tutorial\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-redirect-your-root-directory-to-a-subdirectory\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-redirect-your-root-directory-to-a-subdirectory\\\/\",\"name\":\"How to Redirect your Root Directory to a Subdirectory | bodHOST\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2024-09-23T13:41:37+00:00\",\"dateModified\":\"2026-03-16T06:25:37+00:00\",\"description\":\"In this knowledge-based article, we'll explore the different methods you can use to redirect your root directory to a subdirectory.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-redirect-your-root-directory-to-a-subdirectory\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-redirect-your-root-directory-to-a-subdirectory\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-redirect-your-root-directory-to-a-subdirectory\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Tutorial\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/tutorial\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Redirect your Root Directory to a Subdirectory\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/566ccff9a2fae4af852be8097b179813\",\"name\":\"Paul Lopez\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g\",\"caption\":\"Paul Lopez\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/paullopez\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Redirect your Root Directory to a Subdirectory | bodHOST","description":"In this knowledge-based article, we'll explore the different methods you can use to redirect your root directory to a subdirectory.","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.bodhost.com\/kb\/how-to-redirect-your-root-directory-to-a-subdirectory\/","og_locale":"en_US","og_type":"article","og_title":"How to Redirect your Root Directory to a Subdirectory | bodHOST","og_description":"In this knowledge-based article, we'll explore the different methods you can use to redirect your root directory to a subdirectory.","og_url":"https:\/\/www.bodhost.com\/kb\/how-to-redirect-your-root-directory-to-a-subdirectory\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2024-09-23T13:41:37+00:00","article_modified_time":"2026-03-16T06:25:37+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/09\/How-to-Redirect-your-Root-Directory-to-a-Subdirectory-2.png","type":"image\/png"}],"author":"Paul Lopez","twitter_card":"summary_large_image","twitter_image":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/09\/How-to-Redirect-your-Root-Directory-to-a-Subdirectory-2.png","twitter_misc":{"Written by":"Paul Lopez","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/how-to-redirect-your-root-directory-to-a-subdirectory\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-redirect-your-root-directory-to-a-subdirectory\/"},"author":{"name":"Paul Lopez","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/566ccff9a2fae4af852be8097b179813"},"headline":"How to Redirect your Root Directory to a Subdirectory","datePublished":"2024-09-23T13:41:37+00:00","dateModified":"2026-03-16T06:25:37+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-redirect-your-root-directory-to-a-subdirectory\/"},"wordCount":857,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"articleSection":["Tutorial"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/how-to-redirect-your-root-directory-to-a-subdirectory\/","url":"https:\/\/www.bodhost.com\/kb\/how-to-redirect-your-root-directory-to-a-subdirectory\/","name":"How to Redirect your Root Directory to a Subdirectory | bodHOST","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"datePublished":"2024-09-23T13:41:37+00:00","dateModified":"2026-03-16T06:25:37+00:00","description":"In this knowledge-based article, we'll explore the different methods you can use to redirect your root directory to a subdirectory.","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-redirect-your-root-directory-to-a-subdirectory\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/how-to-redirect-your-root-directory-to-a-subdirectory\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/how-to-redirect-your-root-directory-to-a-subdirectory\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Tutorial","item":"https:\/\/www.bodhost.com\/kb\/category\/tutorial\/"},{"@type":"ListItem","position":2,"name":"How to Redirect your Root Directory to a Subdirectory"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/566ccff9a2fae4af852be8097b179813","name":"Paul Lopez","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g","caption":"Paul Lopez"},"url":"https:\/\/www.bodhost.com\/kb\/author\/paullopez\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/13581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=13581"}],"version-history":[{"count":18,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/13581\/revisions"}],"predecessor-version":[{"id":15268,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/13581\/revisions\/15268"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=13581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=13581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=13581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}