Strong opinions, weakly held

Dynamic Main Indexes with Movable Type

So I posted a question on the Movable Type community forum and thought I’d link to it here. The question is, how do you map the server root URL to the Main Index in Movable Type if you’re using dynamic publishing for that page?

If you publish a static file for the Main Index under the name recognized by the Web server as a directory index, then there’s no problem if someone goes to a URL like http://rc3.org/. However, if you are dynamically publishing that page, then no directory index is found and mtview.php tries to load the template associated with /. Since no such template exists, it returns an error.

The options to deal with this are:

  • Hacking mtview.php to map the URL / to the Main Index.
  • Creating a Movable Type template that maps to /. (I’m not sure whether this will work given that / is not a valid file name.)
  • Add a redirect to .htaccess to redirect people from / to the index.

Is there a preferred solution to this problem in the Movable Type community?


  1. Can you just symlink mtview.php to index.php ? Either it’ll work, or it’ll confuse it…just a thought.

  2. I fixed this problem but then I wound up with a static main index anyway just to speed things up a bit. Go figure.

  3. How’d you fix it?

  4. I posted the solution to the discussion topic that I linked to from the entry. Basically I hacked mtview.php so that it treats “/” as “/index.php”.

Leave a Reply

Your email address will not be published.


© 2019 rc3.org

Theme by Anders NorenUp ↑