{"id":227,"date":"2005-01-12T18:06:15","date_gmt":"2005-01-13T02:06:15","guid":{"rendered":"http:\/\/arcanius.silverfir.net\/wp\/?p=227"},"modified":"2005-02-16T20:34:08","modified_gmt":"2005-02-17T04:34:08","slug":"multiviews","status":"publish","type":"post","link":"https:\/\/arcanius.silverfir.net\/blog\/multiviews\/","title":{"rendered":"MultiViews"},"content":{"rendered":"<p>Ever since I read the article <a href=\"http:\/\/www.w3.org\/Provider\/Style\/URI.html\">Cool URLs don&#8217;t change<\/a>, I have wanted to try out extension-free <accronym title=\"Uniform Resource Locators\">URLs<\/accronym>. However, the few times I attempted, my .var files, as outlined in <a href=\"http:\/\/httpd.apache.org\/docs\/content-negotiation.html\">Apache&#8217;s online documentation on the subject<\/a>, didn&#8217;t seem to be working very well. So I finally read further down that page and came across an alternate method of achieving the same ends: Options MultiViews. I quickly wrote myself up a .htaccess file, and voila: you can access files without their extensions now, like <a href=\"http:\/\/arcanius.silverfir.net\/wp\/index\">http:\/\/arcanius.silverfir.net\/wp\/index<\/a>. Apache automatically searches for matching files and serves the best one it finds.<\/p>\n<p>The reason behind doing something like this is that, for example, one can change server technologies (although I&#8217;m not about to switch from PHP), without changing URLs. For example, the above link would point equally well to index.html, index.php, index.asp, index.jsp, index.InsertServerTechnologyHere, etc. Likewise, one can use a similar methods to automatically switch between image technologies, because <a href=\"http:\/\/arcanius.silverfir.net\/checksum-arcanius-banner\">checksum-arcanius-banner<\/a> points equally well to a .png (which it is) or a .gif, or a .jpg, or any new image technology that might come along.<\/p>\n<p>So, MultiViews is a good thing, in my View. Oh my goodness I&#8217;m hilarious!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever since I read the article Cool URLs don&#8217;t change, I have wanted to try out extension-free URLs. However, the few times I attempted, my .var files, as outlined in Apache&#8217;s online documentation on the subject, didn&#8217;t seem to be working very well. So I finally read further down that page and came across an [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12,8],"class_list":["post-227","post","type-post","status-publish","format-standard","hentry","category-everything","tag-silverfir","tag-technology"],"_links":{"self":[{"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/posts\/227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/comments?post=227"}],"version-history":[{"count":0,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/posts\/227\/revisions"}],"wp:attachment":[{"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/media?parent=227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/categories?post=227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/tags?post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}