Converting to PHP
Question
How can I switch my site to use PHP file extensions?
Answer
Update Archive Settings
Log into Movable Type and navigate to Settings > Publishing1. Locate the setting for File Extension for Archive Files under Publishing Preferences and enter php in the setting field (without a leading period).
Scroll down to Archive Mapping2, and check to see if any of the Archive File Template boxes are filled in - if so, change the extension to php there as well. Press the SAVE button.
Update Index Templates
Navigate to Templates. For each Index Template that you wish to use a .php extension, you will need to edit the template's Output File field to make this change. Press the SAVE button on each Edit Template screen.
Rebuild And Clean Up Files
Rebuild site and choose Rebuild All to generate your new pages.
Log in with your FTP Client and delete index.html and archives.html. In your archives folder, delete all files with an .html extension.
Consider Implementing Redirection
Links to any old .html pages will no longer work. If you have a lot of older entries, you may wish to consider using some form of URL redirection, such as Apache's mod_rewrite.
1 In versions prior to 3.2, navigate to Weblog Configuration > Preferences to find this setting. Press the SAVE button on this screen to preserve the change.
2 In versions prior to 3.2, navigate to Weblog Configuration > Archive Files to review your Archive File Templates. Press the SAVE button on this screen to preserve any changes.


