{"id":9358,"date":"2022-04-21T09:07:45","date_gmt":"2022-04-21T09:07:45","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=9358"},"modified":"2022-04-21T09:07:45","modified_gmt":"2022-04-21T09:07:45","slug":"how-can-i-change-root-directory-by-using-redirection-htaccess","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/","title":{"rendered":"How can I change Root Directory by Using Redirection .htaccess"},"content":{"rendered":"<p><span style=\"font-weight: 400\">In this tutorial we explain how to alter a shared server account&#8217;s document root directory. c However, you might want to use a different directory as the document root on occasion. For example, if you want to try out a new application or test a website configuration before it goes live, this is frequently the case.<\/span><\/p>\n<p><span style=\"font-weight: 400\">To modify the document root directory, This approach makes use of .htaccess redirection and can be configured in cPanel.<\/span><\/p>\n<h3><b>Using Redirection .htaccess<\/b><\/h3>\n<p><span style=\"font-weight: 400\">To modify the document root directory, this method employs redirection rules in an .htaccess file. You configure the web server to redirect incoming requests to a subfolder of your choice using this way. Follow these steps to accomplish this:<\/span><\/p>\n<ul>\n<li><span style=\"font-weight: 400\">Log in to your cPanel account.<\/span><\/li>\n<li><span style=\"font-weight: 400\">Click File Manager: under the FILES area of the cPanel home screen.<\/span><\/li>\n<\/ul>\n<p><a href=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_1-8.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-9359\" src=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_1-8-300x156.png\" alt=\"\" width=\"360\" height=\"187\" srcset=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_1-8-300x156.png 300w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_1-8.png 728w\" sizes=\"(max-width: 360px) 100vw, 360px\" \/><\/a><\/p>\n<ul>\n<li><span style=\"font-weight: 400\">Click the public_html folder in the left sidebar. The contents of the folder are displayed in the right pane.<\/span><\/li>\n<\/ul>\n<p><a href=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_2-6.png\"><img decoding=\"async\" class=\"alignnone wp-image-9360\" src=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_2-6-300x189.png\" alt=\"\" width=\"395\" height=\"249\" srcset=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_2-6-300x189.png 300w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_2-6-768x483.png 768w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_2-6.png 772w\" sizes=\"(max-width: 395px) 100vw, 395px\" \/><\/a><\/p>\n<ul>\n<li><span style=\"font-weight: 400\">Right-click.htaccess in the list of files, then click Edit, then Edit again.<\/span><\/li>\n<\/ul>\n<p><a href=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-6.png\"><img decoding=\"async\" class=\"alignnone wp-image-9361\" src=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-6-300x212.png\" alt=\"\" width=\"372\" height=\"263\" srcset=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-6-300x212.png 300w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-6-768x542.png 768w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_3-6.png 903w\" sizes=\"(max-width: 372px) 100vw, 372px\" \/><\/a><\/p>\n<p><span class=\"text-info\" style=\"font-weight: 400\">You must first create the.htaccess file if it does not appear in the list of files. Click + File in the top menu bar. Type .htaccess in the New File Name text box, then click Create New File.<\/span><\/p>\n<p><a href=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_6-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-9363\" src=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_6-4-300x117.png\" alt=\"\" width=\"351\" height=\"137\" srcset=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_6-4-300x117.png 300w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_6-4.png 568w\" sizes=\"(max-width: 351px) 100vw, 351px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400\">The following text should be copied and pasted into the .htaccess file. Substitute your own domain name for example.com, and subfolder for the name of the folder you want to utilize as the new document root directory. In addition, if you want to utilize a different primary file for your site than index.html, you must specify the filename (for example, index.php):<\/span><\/p>\n<div class=\"service-sh\">\n<pre># .htaccess main domain to subfolder redirect\r\n<span style=\"font-weight: 400\">RewriteEngine on<\/span>\r\n<span style=\"font-weight: 400\">RewriteCond %{HTTP_HOST} ^(www.)?example.com$<\/span>\r\n<span style=\"font-weight: 400\">RewriteCond %{REQUEST_URI} !^\/subfolder<\/span>\r\n<span style=\"font-weight: 400\">RewriteCond %{REQUEST_FILENAME} !-f<\/span>\r\n<span style=\"font-weight: 400\">RewriteCond %{REQUEST_FILENAME} !-d<\/span>\r\n<span style=\"font-weight: 400\">RewriteRule ^(.*)$ \/subfolder\/$1<\/span>\r\n<span style=\"font-weight: 400\">RewriteCond %{HTTP_HOST} ^(www.)?example.com$<\/span>\r\n<span style=\"font-weight: 400\">RewriteRule ^(\/)?$ subfolder\/index.html [L<\/span><\/pre>\n<\/div>\n<ul>\n<li>After that, click Save Changes and then Close.<\/li>\n<li>To test your website, use a web browser. [Content from the new document root directory should be shown by the browser]<\/li>\n<\/ul>\n<h3><b>Restoring the public_html Directory<\/b><\/h3>\n<p><span style=\"font-weight: 400\">By reversing the technique you followed above, you may get back to the original setup and utilize the public_html directory as the document root. Follow these steps to accomplish this:<\/span><\/p>\n<ul>\n<li><span style=\"font-weight: 400\">Log in to your cPanel account.<\/span><\/li>\n<li><span style=\"font-weight: 400\">Click File Manager: under the FILES area of the cPanel home screen.<\/span><\/li>\n<\/ul>\n<p><a href=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_1-9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-9364\" src=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_1-9-300x156.png\" alt=\"\" width=\"354\" height=\"184\" srcset=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_1-9-300x156.png 300w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_1-9.png 728w\" sizes=\"(max-width: 354px) 100vw, 354px\" \/><\/a><\/p>\n<ul>\n<li><span style=\"font-weight: 400\">Click the public_html folder in the left sidebar.<\/span><\/li>\n<\/ul>\n<p><a href=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_2-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-9365\" src=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_2-7-300x189.png\" alt=\"\" width=\"344\" height=\"217\" srcset=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_2-7-300x189.png 300w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_2-7-768x483.png 768w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_2-7.png 772w\" sizes=\"(max-width: 344px) 100vw, 344px\" \/><\/a><\/p>\n<ul>\n<li><span style=\"font-weight: 400\">Right-click the.htaccess file in the file list, then click Rename.<\/span><\/li>\n<\/ul>\n<p><a href=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_5-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-9366\" src=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_5-7-300x194.png\" alt=\"\" width=\"332\" height=\"215\" srcset=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_5-7-300x194.png 300w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_5-7.png 619w\" sizes=\"(max-width: 332px) 100vw, 332px\" \/><\/a><\/p>\n<ul>\n<li><span style=\"font-weight: 400\">Type an alternate name for the.htaccess file in the New file name text box (for example,.htaccess.arsam), and then click Rename File.<\/span><\/li>\n<\/ul>\n<p><a href=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_6-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-9367\" src=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_6-5-300x117.png\" alt=\"\" width=\"323\" height=\"126\" srcset=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_6-5-300x117.png 300w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/Screenshot_6-5.png 568w\" sizes=\"(max-width: 323px) 100vw, 323px\" \/><\/a><\/p>\n<ul>\n<li><span style=\"font-weight: 400\">To test your website, use a web browser. Content from the public_html directory should now be displayed in the browser.<\/span><\/li>\n<\/ul>\n<p><span class=\"text-info\" style=\"font-weight: 400\">Alternatively, you can remove only the relevant redirection rules from the .htaccess file, leaving the remainder of the file intact. If your .htaccess file contains directives that aren&#8217;t connected to the page root directory, you might wish to do this.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial we explain how to alter a shared server account&#8217;s document root directory. c However, you might want to use a different directory as the document root on occasion. For example, if you want to try out a new application or test a website configuration before it goes live, this is frequently the [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":19,"featured_media":9444,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,13],"tags":[],"class_list":["post-9358","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","category-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How can I change Root Directory by Using Redirection .htaccess - cPanel Plesk<\/title>\n<meta name=\"description\" content=\"The default document root directory for your account is \/home\/username\/public_html, where username is your account username.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How can I change Root Directory by Using Redirection .htaccess - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"The default document root directory for your account is \/home\/username\/public_html, where username is your account username.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/cPanel-3.png\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"samama\" \/>\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:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/\"},\"author\":{\"name\":\"samama\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465\"},\"headline\":\"How can I change Root Directory by Using Redirection .htaccess\",\"datePublished\":\"2022-04-21T09:07:45+00:00\",\"dateModified\":\"2022-04-21T09:07:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/\"},\"wordCount\":470,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/cPanel-3.png\",\"articleSection\":[\"Cpanel\",\"WordPress\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/\",\"name\":\"How can I change Root Directory by Using Redirection .htaccess - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/cPanel-3.png\",\"datePublished\":\"2022-04-21T09:07:45+00:00\",\"dateModified\":\"2022-04-21T09:07:45+00:00\",\"description\":\"The default document root directory for your account is \/home\/username\/public_html, where username is your account username.\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/#primaryimage\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/cPanel-3.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/cPanel-3.png\",\"width\":1024,\"height\":538},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How can I change Root Directory by Using Redirection .htaccess\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/\",\"name\":\"cPanel Plesk\",\"description\":\"Blog on famous hosting control panels\",\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\",\"name\":\"Farooq Omer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"width\":300,\"height\":44,\"caption\":\"Farooq Omer\"},\"logo\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465\",\"name\":\"samama\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g\",\"caption\":\"samama\"},\"url\":\"https:\/\/cpanelplesk.com\/wp62\/author\/samama\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How can I change Root Directory by Using Redirection .htaccess - cPanel Plesk","description":"The default document root directory for your account is \/home\/username\/public_html, where username is your account username.","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:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/","twitter_card":"summary_large_image","twitter_title":"How can I change Root Directory by Using Redirection .htaccess - cPanel Plesk","twitter_description":"The default document root directory for your account is \/home\/username\/public_html, where username is your account username.","twitter_image":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/cPanel-3.png","twitter_misc":{"Written by":"samama","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/"},"author":{"name":"samama","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465"},"headline":"How can I change Root Directory by Using Redirection .htaccess","datePublished":"2022-04-21T09:07:45+00:00","dateModified":"2022-04-21T09:07:45+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/"},"wordCount":470,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/cPanel-3.png","articleSection":["Cpanel","WordPress"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/","url":"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/","name":"How can I change Root Directory by Using Redirection .htaccess - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/#primaryimage"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/cPanel-3.png","datePublished":"2022-04-21T09:07:45+00:00","dateModified":"2022-04-21T09:07:45+00:00","description":"The default document root directory for your account is \/home\/username\/public_html, where username is your account username.","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/#primaryimage","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/cPanel-3.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2022\/04\/cPanel-3.png","width":1024,"height":538},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/how-can-i-change-root-directory-by-using-redirection-htaccess\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"How can I change Root Directory by Using Redirection .htaccess"}]},{"@type":"WebSite","@id":"https:\/\/cpanelplesk.com\/wp62\/#website","url":"https:\/\/cpanelplesk.com\/wp62\/","name":"cPanel Plesk","description":"Blog on famous hosting control panels","publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13","name":"Farooq Omer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","width":300,"height":44,"caption":"Farooq Omer"},"logo":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/"}},{"@type":"Person","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465","name":"samama","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g","caption":"samama"},"url":"https:\/\/cpanelplesk.com\/wp62\/author\/samama\/"}]}},"_links":{"self":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/9358","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/comments?post=9358"}],"version-history":[{"count":3,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/9358\/revisions"}],"predecessor-version":[{"id":9445,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/9358\/revisions\/9445"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media\/9444"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=9358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=9358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=9358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}