{"id":466,"date":"2009-07-13T16:36:59","date_gmt":"2009-07-13T09:36:59","guid":{"rendered":"http:\/\/adityo.blog.binusian.org\/?p=466"},"modified":"2009-07-13T17:34:22","modified_gmt":"2009-07-13T10:34:22","slug":"how-to-enable-htaccess-on-apache2-ubuntu","status":"publish","type":"post","link":"https:\/\/adityo.blog.binusian.org\/?p=466","title":{"rendered":"How to enable .htaccess on apache2 ubuntu"},"content":{"rendered":"<p>Go to\u00a0<strong>\/etc\/apache2\/sites-available <\/strong> and edited the file <strong>default<\/strong><\/p>\n<p><code># vi \/etc\/apache2\/sites-available\/default<\/code><br \/>\n<code>NameVirtualHost *<\/p>\n<p>ServerAdmin admin@site.com<br \/>\nDocumentRoot \/var\/www\/<\/p>\n<p>Options FollowSymLinks<br \/>\nAllowOverride None<\/p>\n<p>Options Indexes FollowSymLinks MultiViews<br \/>\nAllowOverride All<br \/>\nOrder allow,deny<br \/>\nallow from all<br \/>\n# This directive allows us to have apache2's default start page<br \/>\n# in \/apache2-default\/, but still have \/ go to the right place<br \/>\n# Commented out for Ubuntu<br \/>\n#RedirectMatch ^\/$ \/apache2-default\/<\/p>\n<p><\/code><br \/>\nYou need to changes AllowOverride from none to all and restart the apache<br \/>\n<code># \/etc\/init.d\/apache2 restart<\/code><\/p>\n<p>and test your .htaccess again<br \/>\n<code>Order allow,deny<br \/>\nDeny from all<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go to\u00a0\/etc\/apache2\/sites-available and edited the file default # vi \/etc\/apache2\/sites-available\/default NameVirtualHost * ServerAdmin admin@site.com DocumentRoot \/var\/www\/ Options FollowSymLinks AllowOverride None Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all # This directive allows us to have apache2&#8217;s default start page # in \/apache2-default\/, but still have \/ go to the right place # [&hellip;]<\/p>\n","protected":false},"author":386,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[2501],"class_list":["post-466","post","type-post","status-publish","format-standard","hentry","category-ubuntu","tag-how-to-enable-htaccess-on-apache2-ubuntu"],"_links":{"self":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/users\/386"}],"replies":[{"embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=466"}],"version-history":[{"count":3,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/466\/revisions"}],"predecessor-version":[{"id":469,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/466\/revisions\/469"}],"wp:attachment":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}