{"id":490,"date":"2013-11-27T21:12:08","date_gmt":"2013-11-27T21:12:08","guid":{"rendered":"http:\/\/thomas.w-p.me.uk\/blog\/?p=490"},"modified":"2013-11-27T21:12:08","modified_gmt":"2013-11-27T21:12:08","slug":"getting-mod-rewrite-working-on-apache2","status":"publish","type":"post","link":"https:\/\/thomas.w-p.me.uk\/blog\/2013\/11\/getting-mod-rewrite-working-on-apache2\/","title":{"rendered":"Getting mod-rewrite working on apache2"},"content":{"rendered":"<p>Apache 2 does (Apache\/2.2.22 on my RPi) didn&#8217;t have mod-rewrite set up from scratch.\u00a0 It took a fair bit off work to get it up and running since there are now a zillion different places you have to find to make all the changes.<\/p>\n<p>Enable mod-rewrite:<br \/>\n<code>$ sudo a2enmod rewrite<\/code><\/p>\n<p>Edit the sites-available\/default file<br \/>\n<code>$ sudo nano \/etc\/apache2\/sites-available\/default<\/code><\/p>\n<p>And edit the Directory directive<br \/>\n<code> &lt;Directory \/var\/www\/&gt;<br \/>\nOptions Indexes FollowSymLinks MultiViews<br \/>\nAllowOverride <span style=\"color: #ff0000;\">All<\/span><br \/>\n<span style=\"color: #ff0000;\">#Order allow,deny<\/span><br \/>\n<span style=\"color: #ff0000;\"> #allow from all<\/span><br \/>\n&lt;\/Directory&gt;<\/code><\/p>\n<p>But that took too long to solve :\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache 2 does (Apache\/2.2.22 on my RPi) didn&#8217;t have mod-rewrite set up from scratch.\u00a0 It took a fair bit off work to get it up and running since there are now a zillion different places you have to find to make all the changes. Enable mod-rewrite: $ sudo a2enmod rewrite Edit the sites-available\/default file $ &hellip; <a href=\"https:\/\/thomas.w-p.me.uk\/blog\/2013\/11\/getting-mod-rewrite-working-on-apache2\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Getting mod-rewrite working on apache2<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[68,67,33],"class_list":["post-490","post","type-post","status-publish","format-standard","hentry","category-geekiness","tag-apache2","tag-cakephp","tag-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts\/490","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/comments?post=490"}],"version-history":[{"count":1,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts\/490\/revisions"}],"predecessor-version":[{"id":491,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts\/490\/revisions\/491"}],"wp:attachment":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/media?parent=490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/categories?post=490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/tags?post=490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}