Re: Lost formatting in browser 'view source'
- From: dorayme <doraymeRidThis@xxxxxxxxxxxxxxx>
- Date: Wed, 22 Nov 2006 14:43:15 +1100
In article <sk97m2hnevlre6g7rj70k65mrkf3os3hsc@xxxxxxx>,
Michael Fesser <netizen@xxxxxx> wrote:
.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
"Its possible" is the intriging thing. It is like a shiny
glimmering toy in the distance... hints and keywords cannot help
me because I am quite unable to follow hints and keywords
intelligently. I do best when someone behind me has a gun to my
head and says, "Do this punk" and I do something really
idiotically simple and he says, relaxing the trigger finger
briefly, "And now this..." etc.
<g>
--
dorayme
.
- 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
- Re: Lost formatting in browser 'view source'
- From: Michael Fesser
- Lost formatting in browser 'view source'
- Prev by Date: Re: Lost formatting in browser 'view source'
- Next by Date: Re: Lost formatting in browser 'view source'
- Previous by thread: Re: Lost formatting in browser 'view source'
- Next by thread: Re: Lost formatting in browser 'view source'
- Index(es):
Relevant Pages
|