<?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/08/changing-urls.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.7291-</id>
  <updated>2011-09-01T02:28:15Z</updated>
  <title>Comments for Changing URLs</title>
  
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.292</generator>
  <entry>
    <id>tag:forums.movabletype.org,2008://24.7291</id>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/08/changing-urls.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=7291" title="Changing URLs" />
    <published>2008-08-23T01:35:24Z</published>
    <updated>2008-09-23T15:15:21Z</updated>
    <title>Changing URLs</title>
    <summary>I started my blog back on MT 2.661 and I used the defualt UR mapping. So I&apos;ve got the old &quot;http://www.somedomain.com/archives/004622.html&quot; style URLs. I want to change over to something more friendly when I go to MT 4.2 (I&apos;m on...</summary>
    <author>
      <name>salguod</name>
      <uri>http://www.salguod.net</uri>
    </author>
    
    <content type="html" xml:lang="en" xml:base="http://forums.movabletype.org/">
      <![CDATA[<p>I started my blog back on MT 2.661 and I used the defualt UR mapping.  So I've got the old "http://www.somedomain.com/archives/004622.html" style URLs.  I want to change over to something more friendly when I go to MT 4.2 (I'm on 3.33 now), perhaps the 4.2 defaults (Depnding on what they are).</p>

<p>I've read the <a href="http://www.movabletype.org/documentation/upgrade/updating-publishing-paths-and.html">two</a> <a href="http://www.movabletype.org/documentation/author/changing-your-urls-mapping-old-urls-to-new-ones.html">pages</a> on the topic here on mt.org, but I think I'm going to go with the suggestion from Chad Everett on the ProNet a while back to put it in the .htaccess file by creating an index template like this:</p>

<blockquote>
  <p>[MTEntries]
  redirect permanent [old style link] [new style link]
  [/MTEntries]</p>
</blockquote>

<p>Anywho, I have two questions:</p>

<p>1.Should I do this before upgrading or after?  Does it matter?
2.I think I can figure out how to create the [old style link] pretty easily using the permalink tag (I think), but how would I create the [new style link] without actually creating the new mappings?  </p>
]]>
      

    </content>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.7291-comment:7681</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.7291" type="text/html" href="http://forums.movabletype.org/2008/08/changing-urls.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/08/changing-urls.html#c7681" />
    <title>Comment from DavidRemer on 2008-09-22</title>
    <author>
        <name>DavidRemer</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>salgoud, </p>

<p>I was in the same boat. What I did was to create an entirely new MT4.2 blog with default settings. Made adjustments to the default settings as appropriate. </p>

<p>I then switched to the old blog, and exported all the entries. Then switched to the new blog and imported those entries. This method inserted the imported entries into the new database structure, and of course, the new Archive mapping features. I preferred the yyyy,mm,dd,blog entry title format. </p>

<p>The default for MT 4.2 is to place archives in the blog's root directory. I would recommend creating an Archive subfolder to your blog root directory for the archives as it keeps the blog folder from getting cluttered. </p>

<p>It worked flawlessly for me. </p>

<p>I did then, create an htaccess file which, as you indicated, redirected traffic from the old archives folders to the new one while blocking access to the old archive folders listings.</p>

<p>Be sure to back up your old blog and database, just in case. Then export entries. Create new blog, adjust settings, and then import old blog entries. Voila! </p>

<p> </p>]]>
    </content>
    <published>2008-09-22T14:13:45Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.7291-comment:7719</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.7291" type="text/html" href="http://forums.movabletype.org/2008/08/changing-urls.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/08/changing-urls.html#c7719" />
    <title>Comment from Mike T on 2008-09-23</title>
    <author>
        <name>Mike T</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>You can have more than one mapping. I have a mapping in place that creates 1 set of individual archives with underscores and another that creates them with dashes. It'll make your rebuild process longer, but if you take advantage of 4.21's template module caching mechanism, you'll see a dramatic decrease in the amount of time a full rebuild takes.</p>]]>
    </content>
    <published>2008-09-23T15:15:21Z</published>
  </entry>

</feed>

