Copyright 2006?It's that time of the year, when the boss reminds you that you've got to change every single 'Copyright 2006' in the footer of your web pages to 'Copyright 2007'... at midnight, New Year's Eve. Fear not. With a little TrafficScript™, you can celebrate with everyone else, and lay the guilt on the boss when you return in the New Year. The trick is to add a TrafficScript response rule that rewrites all of your outgoing web pages, but only after midnight on January 1st:
The difficult bit is working out which bits of content to rewrite. You can't just change every 2006 to 2007, because there may be lots of dates in the web content that you don't want to change. For www.zeus.com, the footer of every page says:
... and it's in the last 250 bytes of the page (at least, before we insert our Google Analytics tracking code). The following code reads the entire response and rewrites it on the fly. Note that '
That's it! Come and visit www.zeus.com in the New Year and check that it's worked! Happy New Year! For reference, here's the entire rule:
|
Recently...
Other Resources
|





