Why have an extension at all? Extensions in URL's are a holdover from our filesystem-based web concepts.. There's no technical requirement that they be there.

By enabling content negotiation (MultiViews via mod_negotiation) in Apache, you could reference skinned.cgi like this:

http://foo.bar.bah/~stesla/skinned

This would automatically select .html, .cgi, or whatever "best" extension can handle this URI. In most cases there'll only be one, but it also allows you to go multi-language or multi-content-type if you wanted to.

Plus, if you change technologies at a later date and instead to go with, say, .shtml instead of .cgi, or back your content with XML, you don't have to go through and change all of your URL's.

Lastly, even if you don't go with a trick like this, mod_rewrite can be used to re-write your "pretty" URI's with less-pretty ones that are more reflective of the true name of the resource.


In reply to Re: Alternatives to PerlTransHandler? by Fastolfe
in thread Alternatives to PerlTransHandler? by SamQi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.