|
Posted by Michael Fesser on 11/22/06 01:31
..oO(J.O. Aho)
>Renaming the files to *.php is a better idea than use AddType.
Not really. Changing URLs is never a good idea.
>If you are
>concerned about users links and bookmarks to break, you have the nice option
>in apache to rewrite rules, if they try to load a "missing" html page,
>redirect them to a php file with the same name.
There's a better option: Let all URLs end in .html (or no extension),
while still allowing the server to chose the most appropriate handler
for a particular file. Static files can be send as-is, SSI can be
handled by the server, PHP can be run through the interpreter etc.
It's all possible with simple .html URLs. The keyword is "MultiViews".
Micha
Navigation:
[Reply to this message]
|