<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/archive-file-path-without-file-extension.html" />
  <link rel="self" type="application/atom+xml" href="http://forums.movabletype.org/atom.xml" />
  <id>tag:forums.movabletype.org,2011://24/tag:forums.movabletype.org,2008://24.11396-</id>
  <updated>2011-09-01T02:26:50Z</updated>
  <title>Comments for Archive File Path without file extension?</title>
  
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.292</generator>
  <entry>
    <id>tag:forums.movabletype.org,2008://24.11396</id>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/archive-file-path-without-file-extension.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.movabletype.org/cgi-bin/mt/mt-atom.cgi/weblog/blog_id=24/entry_id=11396" title="Archive File Path without file extension?" />
    <published>2008-11-20T22:34:00Z</published>
    <updated>2008-11-20T23:52:59Z</updated>
    <title>Archive File Path without file extension?</title>
    <summary>I searched for hours and tried different solutions before to post this message. I&#8217;m trying to have all my permalinks to entries (as well as archive pages) without an extension in the end. Something like: http://mysite.com/blog/2008/11/19/new-design-launched-using-movable-type I have the following...</summary>
    <author>
      <name>Mathieu</name>
      <uri>http://www.mathieuthouvenin.com/</uri>
    </author>
    
    <category term="General" />
    
    <content type="html" xml:lang="en" xml:base="http://forums.movabletype.org/">
      <![CDATA[<p>I searched for hours and tried different solutions before to post this message. I&#8217;m trying to have all my permalinks to entries (as well as archive pages) without an extension in the end. Something like: http://mysite.com/blog/2008/11/19/new-design-launched-using-movable-type
I have the following Archive Mapping for my Entry Archives: blog/%y/%m/%d/%-F</p>

<p>The thing is that when I access that link from my browser, It displays the content of the HTML page and not the page itself. So, I added an .htaccess file at the root of my blog and server with the following content: 
DefaultType text/html
DirectoryIndex index index.html</p>

<p>Even with this .htaccess file, it doesn&#8217;t change anything and still displays the HTML content of the entries and not the entry itself (rendered from HTML by my browser).</p>

<p>Have any ideas why? Can somebody help me?</p>

<p>Thank you!</p>
]]>
      

    </content>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11396-comment:14560</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11396" type="text/html" href="http://forums.movabletype.org/2008/11/archive-file-path-without-file-extension.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/archive-file-path-without-file-extension.html#c14560" />
    <title>Comment from Culture Snob on 2008-11-20</title>
    <author>
        <name>Culture Snob</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>I've struggled with this, too, and tried a variety of remedies that were less than ideal.</p>

<p>The easiest thing to do is to set your archive path to yyyy/mm/entry-basename/index.php (one of the default options; you could also do .html). The "index.*" doesn't actually show up with the permalinks.</p>

<p>Personally, I also found it helpful to create another archive map for my old permalink structure (which was yyyy/mm/entry_basename.php) with redirect code to the new page. </p>

<p>All this prevents you having to mess with your .htaccess file.</p>]]>
    </content>
    <published>2008-11-20T22:52:19Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11396-comment:14562</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11396" type="text/html" href="http://forums.movabletype.org/2008/11/archive-file-path-without-file-extension.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/archive-file-path-without-file-extension.html#c14562" />
    <title>Comment from Mathieu on 2008-11-20</title>
    <author>
        <name>Mathieu</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>So the easiest thing to do is to not do it? Just no choice than having the URL with a .html extension? :(</p>

<p>Thanks!</p>]]>
    </content>
    <published>2008-11-20T22:58:28Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11396-comment:14564</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11396" type="text/html" href="http://forums.movabletype.org/2008/11/archive-file-path-without-file-extension.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/archive-file-path-without-file-extension.html#c14564" />
    <title>Comment from Mike T on 2008-11-20</title>
    <author>
        <name>Mike T</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>That's not what he/she said. Go to the Entry listing archive template, and change it so that it generates your entry listings according to the format yyyy/mm/entry-basename/index.html which is one of the standard options in the archive mapping.</p>]]>
    </content>
    <published>2008-11-20T23:09:48Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11396-comment:14566</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11396" type="text/html" href="http://forums.movabletype.org/2008/11/archive-file-path-without-file-extension.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/archive-file-path-without-file-extension.html#c14566" />
    <title>Comment from Culture Snob on 2008-11-20</title>
    <author>
        <name>Culture Snob</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>I wasn't clear on this point.</p>

<p>The permalink will be this:</p>

<p><a href="http://www.example.com/2008/11/dummy-slug/" rel="nofollow">http://www.example.com/2008/11/dummy-slug/</a></p>

<p>The actual file structure will be </p>

<p><a href="http://www.example.com/2008/11/dummy-slug/index.html" rel="nofollow">http://www.example.com/2008/11/dummy-slug/index.html</a></p>

<p>But readers will never see the "index.html" part.</p>

<p>So it's not technically serving extension-less files, but it acts the same.</p>

<p>Is that clearer?</p>]]>
    </content>
    <published>2008-11-20T23:10:20Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11396-comment:14572</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11396" type="text/html" href="http://forums.movabletype.org/2008/11/archive-file-path-without-file-extension.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/archive-file-path-without-file-extension.html#c14572" />
    <title>Comment from Mathieu on 2008-11-20</title>
    <author>
        <name>Mathieu</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Ok, I see. It seems to work fine.<br />
Thank you very much!</p>]]>
    </content>
    <published>2008-11-20T23:52:59Z</published>
  </entry>

</feed>

