Re: Lost formatting in browser 'view source'



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
.



Relevant Pages

  • Re: "modern" javascript...
    ... *default* presentation of HTML elements. ... I agree with dhtml, that is only one handler; ... apparent value of "maintainability" etc. ... through a css selector leads to code I don't like. ...
    (comp.lang.javascript)
  • Re: Simpler loading through jQuery
    ... widgets HTML can be added to the page and the delegation just works. ... and AIUI even standards-compliant DOM ... But then I don't see anything odd in attaching event handler to ... `documentElement` and I haven't stumbled upon any problems with it just ...
    (comp.lang.javascript)
  • Re: Problem - Serving web pages on the desktop (SimpleHTTPServer)
    ... and loads an HTML page in a new browser window at the local host ... from StringIO import StringIO ... the handler does in this case. ... Here's my sample directory: ...
    (comp.lang.python)
  • Re: How do I properly pass a parameter to a parameterized event handler in a loop?
    ... That is not Valid HTML. ... What are users without enabled client-side script support going to do with ... The closure created by the method assignment is unused because you are ... object referred to is not longer called as method of the object `handler' ...
    (comp.lang.javascript)
  • Re: Homework question relating to docview
    ... if the data is persisted by the application, the handler ... if there are multiple views requiring the information, ... And if a class is responsible for persisting ... change the HTML document in both Code and Design views. ...
    (microsoft.public.vc.mfc)