{"id":5,"date":"2005-12-01T17:29:26","date_gmt":"2005-12-01T17:29:26","guid":{"rendered":"http:\/\/coffeehouse.co.nz\/wordpress\/?p=5"},"modified":"2005-12-01T17:38:34","modified_gmt":"2005-12-01T17:38:34","slug":"rewriting-slashes","status":"publish","type":"post","link":"https:\/\/coffeehouse.co.nz\/wordpress\/?p=5","title":{"rendered":"Rewriting slashes"},"content":{"rendered":"<p>Well, I finally managed to crack a small but annoying problem on the webserver.<\/p>\n<p>When anyone was requesting a web site directory URL like www.coffeehouse.co.nz\/wordpress without the trailing \/, then there would be an error,and not a redirection to the index page of that directory like it should.<\/p>\n<p>Setting <code>UseCanonicalName  off<\/code>  in the Apache server settings seems to have fixed this without having to worry about any strange rewrite rules using regular expressions. Which I find still just a bit tricky to even sit down and try to learn, though I really should do.<\/p>\n<p>Still, one more small problem dealt with&#8230;.  Should have got around to that one a long time ago.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well, I finally managed to crack a small but annoying problem on the webserver. When anyone was requesting a web site directory URL like www.coffeehouse.co.nz\/wordpress without the trailing \/, then there would be an error,and not a redirection to the index page of that directory like it should. Setting UseCanonicalName off in the Apache server [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/coffeehouse.co.nz\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5"}],"collection":[{"href":"https:\/\/coffeehouse.co.nz\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coffeehouse.co.nz\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coffeehouse.co.nz\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/coffeehouse.co.nz\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5"}],"version-history":[{"count":0,"href":"https:\/\/coffeehouse.co.nz\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5\/revisions"}],"wp:attachment":[{"href":"https:\/\/coffeehouse.co.nz\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coffeehouse.co.nz\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coffeehouse.co.nz\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}