{"id":427,"date":"2013-09-09T09:45:22","date_gmt":"2013-09-09T15:45:22","guid":{"rendered":"http:\/\/bozhidar.maramski.com\/?p=427"},"modified":"2013-09-22T17:44:47","modified_gmt":"2013-09-22T23:44:47","slug":"htaccess-tips-and-tricks","status":"publish","type":"post","link":"https:\/\/bogi.maramski.com\/?p=427","title":{"rendered":".htaccess tips and tricks"},"content":{"rendered":"<p>1.<br \/>\nIs .htaccess enabled?<br \/>\nIn virtual host configuration:<br \/>\n<code>AllowOverride None<\/code><br \/>\nchange it to<br \/>\n<code>AllowOverride All<\/code> <\/p>\n<p>2.<br \/>\nrestart apache <code>\/etc\/init.d\/apache2 restart<\/code><\/p>\n<p>3.<br \/>\nIn to folder you want to protect, make file with name <code>.htaccess<\/code><br \/>\nSample <code>.htaccess<\/code> file for password protection:<br \/>\n<code>AuthType Basic<br \/>\nAuthName \"restricted area\"<br \/>\nAuthUserFile \/usr\/local\/var\/www\/html\/.htpasses<br \/>\nrequire valid-user<\/code><\/p>\n<p>4.<br \/>\ncreate pass file <code>\/usr\/local\/var\/www\/html\/.htpasses<\/code><\/p>\n<p>5.<br \/>\nmake new pass<br \/>\n<code>htpasswd -c \/usr\/local\/var\/www\/html\/.htpasses jimmy<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Is .htaccess enabled? In virtual host configuration: AllowOverride None change it to AllowOverride All 2. restart apache \/etc\/init.d\/apache2 restart 3. In to folder you want to protect, make file with name .htaccess Sample .htaccess file for password protection: AuthType Basic AuthName &#8220;restricted area&#8221; AuthUserFile \/usr\/local\/var\/www\/html\/.htpasses require valid-user 4. create pass file \/usr\/local\/var\/www\/html\/.htpasses 5. make [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-427","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/bogi.maramski.com\/index.php?rest_route=\/wp\/v2\/posts\/427"}],"collection":[{"href":"https:\/\/bogi.maramski.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bogi.maramski.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bogi.maramski.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bogi.maramski.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=427"}],"version-history":[{"count":6,"href":"https:\/\/bogi.maramski.com\/index.php?rest_route=\/wp\/v2\/posts\/427\/revisions"}],"predecessor-version":[{"id":437,"href":"https:\/\/bogi.maramski.com\/index.php?rest_route=\/wp\/v2\/posts\/427\/revisions\/437"}],"wp:attachment":[{"href":"https:\/\/bogi.maramski.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bogi.maramski.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bogi.maramski.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}