Help - Search - Members - Calendar
Full Version: save as php not html ?
Movable Type Community Forum > Additional Resources > Tips and Tricks
enrico
how can i tell MT to save all files as PHP and not HTML.
i want to use includes on almost every page (my site header/footer etc....)
nammer
Why, it's simple: convert to PHP (this is a step-by-step guide). Or, use an .htaccess command to serve up .html pages as PHP.

Does that help?

Donna
silverberry
Go into weblog config , preferences.... and tell it your extension should be PHP not HTML.

Then alter your other templates, make sure the output file has a php extension. When you rebuild, it will rebuild your files with the php extension.

(AFter rebuilding, you'll want to go in and delete the .html files on your server, especially if they're index files -- because the default is to find the index.html file -- so it won't pull the index.php file unless the index.html no longer exists ... blah blah blah ... basically delete the old files when you've rebuilt and new php ones have been created wink.gif
enrico
thanks !
worked like a charm...
i actually went over all of the blog options... i guess i just skipped that one... smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.