KBD

Keith Devens .com

Friday, January 9, 2009 Flag waving
But goodness alone is never enough. A hard cold wisdom is required, too, for goodness to accomplish good. Goodness without... – Robert Heinlein
← Entry 909Entry 911 →

Daily link icon Friday, November 9, 2001

Entry 910

I really want to know what aaron uses for his weblog. I know he rolled his own, and he has a lot of Perl on his site, so it probably uses that, but I really want to know he got URLs to look like this: http://www.aaronland.net/weblog/archive/252 - Apache's Mod_Rewrite? I think that's the only way to do it (unless you use something other than Apache), but for some reason I keep hoping to find some secret trick that no one else knows about that will let me make cool URLs like that without it. The best I could do was to use links like /weblog/?id910.

The thing that's important, especially for links you want to keep permanent, is to hide the technology you use. For instance, it would be annoying to have used something like "/weblog/index.php3?id=910", since if I ever decided to move to, say, asp (mwa ha ha), I'd have to change all my URLs. The way it is now, I can rip out the technology, replace it with something else, and keep the urls the same, should I so choose. It's just that having something like "/weblog/910" would just be cooler.

Remember, cool URIs don't change, and good URLs are part of interface design.

More Like This says it uses Mod_Rewrite, and points to this article to explain how it's done. Cool. Well what do you know? I just got to the end of the article and it turns out it was written by him (Bill Humphries).

One more thing. Using Mod_Rewrite is cool and all, but while without it you tie yourself to specific URLs (but like I said earlier today you can always redirect them in your 404 page), with it, or with something like content negotiation, you tie yourself more closely to one server, or one web host who lets you use something like Mod_Rewrite (most don't).

← Entry 909Entry 911 →

Comments XML gif


Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

January 2009
SunMonTueWedThuFriSat
 123
45678910
11121314151617
18192021222324
25262728293031



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 3 posts

Recent comments XML

The Elegant Universe

Well I have finally found the crazy​guy that preaches useless nonsence​in A...

Joseph Baxter: Jan 7, 11:07pm

I hate Norton Antivirus


SYMANTEC is very​cunning..
Symantec now have a​redeemable cash back offe...

CAN: Jan 4, 6:25pm

Spider solitaire

Hi everyone!

Glad to have found​this site.  I have enjoyed reading​the c...

flwrchld53: Jan 4, 5:30pm

Generated in about 0.211s.

(Used 8 db queries)

mobile phone