{"id":4300,"date":"2022-05-03T13:04:38","date_gmt":"2022-05-03T12:04:38","guid":{"rendered":"https:\/\/ibex.tech\/wordpress-sites\/?p=4300"},"modified":"2022-05-03T13:04:38","modified_gmt":"2022-05-03T12:04:38","slug":"exclude-subdirectory","status":"publish","type":"post","link":"https:\/\/ibex.tech\/wordpress-sites\/wordpress\/file-system\/exclude-subdirectory","title":{"rendered":"Exclude Subdirectory"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Stop wordpress being active on a subdirectory within WordPress<\/h4>\n\n\n\n<p>All files and directories from the installed directory are considered to be under its control by WordPress.  You can exclude a directory by adding an htaccess rule.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Exclude the subdirectory &#8220;my_subdirectory&#8221; from a WordPress root installed website<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code># BEGIN WordPress\r\nRewriteEngine On\r\nRewriteCond %{REQUEST_FILENAME} !-f\r\nRewriteCond %{REQUEST_FILENAME} !-d\r\nRewriteCond %{REQUEST_URI} !^\/my_subdirectory\nRewriteRule . \/index.php &#91;L]\r\n# END WordPress<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Stop wordpress being active on a subdirectory within WordPress All files and directories from the installed directory are considered to be under its control by WordPress. You can exclude a directory by adding an htaccess rule. Exclude the subdirectory &#8220;my_subdirectory&#8221; from a WordPress root installed website<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[355],"tags":[],"class_list":["post-4300","post","type-post","status-publish","format-standard","hentry","category-file-system"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/posts\/4300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/comments?post=4300"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/posts\/4300\/revisions"}],"predecessor-version":[{"id":4301,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/posts\/4300\/revisions\/4301"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/media?parent=4300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/categories?post=4300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/tags?post=4300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}