{"id":1772,"date":"2014-01-30T13:47:00","date_gmt":"2014-01-30T13:47:00","guid":{"rendered":"http:\/\/www.astarmathsandphysics.com\/blog\/paulsmith\/?p=1772"},"modified":"2014-01-30T13:50:54","modified_gmt":"2014-01-30T13:50:54","slug":"how-to-put-index-html-into-every-folder","status":"publish","type":"post","link":"https:\/\/astarmathsandphysics.com\/blog\/paulsmith\/2014\/01\/how-to-put-index-html-into-every-folder\/","title":{"rendered":"How to put index.html into every folder"},"content":{"rendered":"<p>And stop directory browsing on your website, go to the root folder of your website and copy this into a terminal<br \/>\nfor dir in $(find www\/ -type d -maxdepth 1); do cp -i www\/index.htm &#8220;$dir&#8221;\/; done<\/p>\n","protected":false},"excerpt":{"rendered":"<p>And stop directory browsing on your website, go to the root folder of your website and copy this into a terminal for dir in $(find www\/ -type d -maxdepth 1); do cp -i www\/index.htm &#8220;$dir&#8221;\/; done<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4],"tags":[],"class_list":["post-1772","post","type-post","status-publish","format-standard","hentry","category-my-life-with-ubuntu"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3Wm4j-sA","jetpack-related-posts":[{"id":1776,"url":"https:\/\/astarmathsandphysics.com\/blog\/paulsmith\/2014\/01\/change-entire-directory-permission-including-files-and-subdirectories-in-ubuntu\/","url_meta":{"origin":1772,"position":0},"title":"Change entire directory permission including files and subdirectories in ubuntu","author":"taxicle","date":"January 30, 2014","format":false,"excerpt":"Run this as root in a terminal to change folder to owner newowner and group newgroup chown -R newowner:newgroup folder","rel":"","context":"In &quot;My Life With Ubuntu&quot;","block_context":{"text":"My Life With Ubuntu","link":"https:\/\/astarmathsandphysics.com\/blog\/paulsmith\/category\/my-life-with-ubuntu\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":986,"url":"https:\/\/astarmathsandphysics.com\/blog\/paulsmith\/2012\/12\/average-lifetime-of-a-website\/","url_meta":{"origin":1772,"position":1},"title":"Average Lifetime of a Website","author":"taxicle","date":"December 5, 2012","format":false,"excerpt":"Is apparently only anything up to 75 days. This tells me that the internet is full of crooks and spivs who don't stick around long enough for the police to come knocking on the door. This website has been around for over 5 years now.","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":206,"url":"https:\/\/astarmathsandphysics.com\/blog\/paulsmith\/2011\/04\/recommended-website\/","url_meta":{"origin":1772,"position":2},"title":"Recommended Website","author":"taxicle","date":"April 4, 2011","format":false,"excerpt":"An overseas student of mine built it. Lot of stuff to download. www.studenttech.co.cc","rel":"","context":"With 1 comment","block_context":{"text":"With 1 comment","link":"https:\/\/astarmathsandphysics.com\/blog\/paulsmith\/2011\/04\/recommended-website\/#comments"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1786,"url":"https:\/\/astarmathsandphysics.com\/blog\/paulsmith\/2014\/02\/how-to-speed-up-your-joomla-website\/","url_meta":{"origin":1772,"position":3},"title":"How to speed up your joomla website","author":"taxicle","date":"February 24, 2014","format":false,"excerpt":"When I tried to update my website from joomla 2.5.17 to 3.2.2 through the admin panel THE SCREEN WENT BLANK! I had no admin panel or website at all! It was probably a bad idea to upgrade anyway, but now I had to restore a backup. NONE OF MY SERVER\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1082,"url":"https:\/\/astarmathsandphysics.com\/blog\/paulsmith\/2013\/01\/displaying-php-errors-when-debugging-a-website\/","url_meta":{"origin":1772,"position":4},"title":"Displaying PHP errors when debugging a website","author":"taxicle","date":"January 6, 2013","format":false,"excerpt":"Insert this in your .htaccess file php_flag display_errors on Very useful","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2697,"url":"https:\/\/astarmathsandphysics.com\/blog\/paulsmith\/2021\/02\/when-i-work-on-my-website\/","url_meta":{"origin":1772,"position":5},"title":"When I work on my website","author":"taxicle","date":"February 25, 2021","format":false,"excerpt":"I feel something like imposter syndrome coming over me. I can't do this any more.","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/astarmathsandphysics.com\/blog\/paulsmith\/wp-json\/wp\/v2\/posts\/1772","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/astarmathsandphysics.com\/blog\/paulsmith\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/astarmathsandphysics.com\/blog\/paulsmith\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/astarmathsandphysics.com\/blog\/paulsmith\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/astarmathsandphysics.com\/blog\/paulsmith\/wp-json\/wp\/v2\/comments?post=1772"}],"version-history":[{"count":1,"href":"https:\/\/astarmathsandphysics.com\/blog\/paulsmith\/wp-json\/wp\/v2\/posts\/1772\/revisions"}],"predecessor-version":[{"id":1773,"href":"https:\/\/astarmathsandphysics.com\/blog\/paulsmith\/wp-json\/wp\/v2\/posts\/1772\/revisions\/1773"}],"wp:attachment":[{"href":"https:\/\/astarmathsandphysics.com\/blog\/paulsmith\/wp-json\/wp\/v2\/media?parent=1772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/astarmathsandphysics.com\/blog\/paulsmith\/wp-json\/wp\/v2\/categories?post=1772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/astarmathsandphysics.com\/blog\/paulsmith\/wp-json\/wp\/v2\/tags?post=1772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}