If you're using mod_rewrite, you can set options on just about anything, but that's not quite what I was alluding to.
For what I was talking about in that particular case, what you'd do is set your DirectoryIndex or equivalent in your web server, so that instead of referencing your pages as something like the following:
- http://server/path/page1.html
- http://server/path/page2.html
- http://server/path/page3.html
You instead use:
- http://server/path/page1
- http://server/path/page2
- http://server/path/page3
Each one of those is actually a directory, so in the case of Apache, it's going to redirect you to:
- http://server/path/page1/
- http://server/path/page2/
- http://server/path/page3/
And in each of those directories, you'll have the appropriate file extension for whatever you're trying to trigger. (index.shtml, index.php, index.jsp, index.cfm, index.cgi, etc, which you've defined as being your directory index, and configured your server to handle the extension correctly)
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.