I made some changes about the permalink here, based on Mark Pilrim’s article about Cruft-free URLs in Movable Type. The process is quite similar like what Mark did.
Another important point also, the pages can be reached using the previous links (with the .php extention).
In short this is what I have on my MT configuration (for the main weblog):
- Individual Archives Files:
< $MTArchiveDate format="%Y/%m"$>/< $MTEntryTitle dirify="1"$> < $MTEntryKeywords dirify="1"$> - Monthly Archives Files:
< $MTArchiveDate format="%Y/%m/index"$> - Monthly Archives Files (all titles):
< $MTArchiveDate format="%Y/%m/all_title"$> - Category Archives Files:
< $MTArchiveCategory dirify="1"$> - Category Archives Files (all title):
< $MTArchiveCategory dirify="1"$>_title
To make the title shorter, I use the entry keyword variable, and if there is no keyword(s), the entry title will be dirified. It is possible because of Brad‘s MT-IfEmpty plugin.
And in the Weblog Configuration, Preferences, I give the individual entry no extension, leaving it blank.
In the template files, the main index file still has .php extention, but not files under /archives.
And in the .htaccess file, I put this following lines:
DefaultType application/x-httpd-php RedirectMatch permanent /archives/(.*).php$ http://warnadunia.net/archives/$1
So, /some_entry_permalink.php will redirected to /some_entry_permalink. Yes, because (I agree with this) changing the URI is a bad idea.
So, some visitors might try to put a trailing slash, like: /some_entry_permalink/, but I think it will be no problem.
Well, just an experiment. So, how’s your permalinks?