{"id":421,"date":"2009-12-14T08:54:12","date_gmt":"2009-12-14T12:54:12","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=421"},"modified":"2013-06-08T10:26:49","modified_gmt":"2013-06-08T14:26:49","slug":"what-is-htaccess-and-how-to-disable-htaccess","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/what-is-htaccess-and-how-to-disable-htaccess","title":{"rendered":"What is .htaccess and how to disable .htaccess?"},"content":{"rendered":"<blockquote><p><span style=\"color: #0000ff;\"><strong>What is .htaccess and how to disable .htaccess?<\/strong><\/span><\/p><\/blockquote>\n<p><strong>.htaccess is use to modify the way Apache behaves for a directory and it&#8217;s sub-directories.<\/strong> It gives you an extra control on your server, like setting up custom error messages, password protect a directory, writing rewrite rules, blocking IPs etc.<\/p>\n<p>However, it can be a potentially dangerous file. For example, a hacker can redirect your website to an external website say a malware website.<\/p>\n<p><strong>In order to disable .htaccess server wide<\/strong>, edit the Apache configuration file<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>pico \/etc\/httpd\/conf\/httpd.conf<\/strong><\/span><\/p><\/blockquote>\n<p><strong>Search for<\/strong><\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>AllowOverride All<\/strong><\/span><\/p><\/blockquote>\n<p><strong>replace it with<\/strong><\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>AllowOverride None<\/strong><\/span><\/p><\/blockquote>\n<p>Save the file and restart the Apache service.<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>service httpd restart<\/strong><\/span><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>What is .htaccess and how to disable .htaccess?<br \/>\n.htaccess is use to modify the way Apache behaves for a directory and it&#8217;s sub-directories. It gives you an extra control on your server, like setting up custom error messages, password protect a directory, writing rewrite rules, blocking IPs etc.<br \/>\nHowever, it can be a potentially dangerous file. For example, a hacker can redirect your website to an external website say a malware website.<br \/>\nIn order to disable .htaccess server wide, edit the Apache configuration file<br \/>\npico \/etc\/httpd\/conf\/httpd.conf<br \/>\nSearch for<br \/>\nAllowOverride All<br \/>\nreplace it with<br \/>\nAllowOverride None<br \/>\nSave the [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[568,563,569,566,565,562,567,564],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/421"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=421"}],"version-history":[{"count":3,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/421\/revisions"}],"predecessor-version":[{"id":423,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/421\/revisions\/423"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}