Re: Lost formatting in browser 'view source'
- From: Michael Fesser <netizen@xxxxxx>
- Date: Wed, 22 Nov 2006 02:31:54 +0100
..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
.
- Follow-Ups:
- Re: Lost formatting in browser 'view source'
- From: dorayme
- Re: Lost formatting in browser 'view source'
- References:
- Lost formatting in browser 'view source'
- From: dorayme
- Re: Lost formatting in browser 'view source'
- From: J.O. Aho
- Re: Lost formatting in browser 'view source'
- From: dorayme
- Re: Lost formatting in browser 'view source'
- From: J.O. Aho
- Re: Lost formatting in browser 'view source'
- From: dorayme
- Re: Lost formatting in browser 'view source'
- From: J.O. Aho
- Re: Lost formatting in browser 'view source'
- From: dorayme
- Re: Lost formatting in browser 'view source'
- From: J.O. Aho
- Lost formatting in browser 'view source'
- Prev by Date: Re: Performance cost to parsing SSI and PHP
- Next by Date: can this be done, referrring to an array immediately
- Previous by thread: Re: Lost formatting in browser 'view source'
- Next by thread: Re: Lost formatting in browser 'view source'
- Index(es):
Relevant Pages
|