KBD

Keith Devens .com

Tuesday, December 2, 2008 Flag waving
The status is *not* quo. – Dr. Horrible
← Serenity is goMozilla sidebar sends referrer header →

Daily link icon Wednesday, March 3, 2004

Renaming

Any CMS should have a way to rename parts of a URL structure so that A. the resource becomes available at a new location and is no longer available at the old location, and B. the old location automatically does a permanent redirect to the new location. This way the end-user can feel free to rename things at will (and there's no pressure to come up with the perfect name the first time).

Of course, renaming has a couple of issues that you have to watch out for. If you change the location of a resource from A to B, and then from B to C, A should forward to C without forwarding to B first. Furthermore, if you rename A to B, B to C, and C to A again, A should work, and B and C should forward to A. Finally, if the resource is deleted, all pointers should be removed. Update: Oh yeah, and if another resource is created with the original name, then you have to make sure to remove whatever rename information exists so that the new resource can be available.

However, in case of deletion, it may make sense to keep track of deleted entries so it's possible to respond with an HTTP GONE (410) response code. In that case, it is more appropriate for both A and B to directly return 410 rather than A send a "moved permanently" response and forward to B and have B return 410.

← Serenity is goMozilla sidebar sends referrer header →

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)
:

December 2008
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031 



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

Recent comments XML

new⇒Perl 6 1.0 in March?

Doh, my mistake. I'm aware of the​relation between Parrot and Rakudo​but I'...

Keith: Dec 2, 1:03am

Free image hosting sites

Well, TinyPic has this in its​FAQ:

> Images and videos is in​your accoun...

Keith: Dec 1, 1:13am

Join a NameValueCollection into a querystring in C#

Well with a lamba expression, this​is what I came up​with:

?!code:csharp...

Gustaf Lindqvist: Nov 30, 4:38pm

Why no generic OrderedDictionary?

Check​http://www.codeproject.com/KB/recip​es/GenericOrderedDictionary.aspx?d...

Gabrielk: Nov 27, 6:57am

WhatIsMyIP.com

http://www.thesysteminfo.com is​another good alternate to​whatismp.com... I...

Kripz: Nov 26, 8:51pm

Girls, please don't get breast implants

Actually I think it's sweet when a​man loves a woman whether she's big​or n...

218.186.12.228: Nov 26, 9:40am

Generated in about 0.185s.

(Used 8 db queries)

mobile phone