Auto-Redirect Complete – A Couple of Years Late though!

UCT LogoI’ve been running/maintaining the Commerce faculty website for a good 5 or 6 years now and it is finally reaching a point where my own laziness towards the site is beginning to amaze me.

Because I’ve finally becoming to lazy to use the mouse to browse to the particular departmental courses I need to get to on the site (it currently takes two clicks – from the homepage click on ‘Browse Course Sites’ and then click on the relevant course link), I’ve finally implemented an auto-redirect system which really should have been done years ago.

And it took me exactly 5 minutes to rush through this morning, using a mere 29 lines of verbose coding (i.e. ‘if – then’ and ‘end if’ lines all appear in a new line).

So now the site accepts all valid course code shortcuts and attempts to redirect you straight to the site, e.g. http://www.commerce.uct.ac.za/eco2008s will dump you directly on the ECO2008S website, just as http://www.commerce.uct.ac.za/acc1006s would dump you on the ACC1006S website.

Nifty I know :)

Hint to all webmasters maintaining multiple sites under a single umbrella site – standardisation will make your life so easy, trust me.

You might also enjoy:

  • Okay, okay so I posted about initial tentative steps in the creation of a tool way back in post {0104}. Unfortunately, life and work in particular got in th ...
  • Have you ever wanted to use Google to search within a particular website before?Actually, Google makes this pretty simple thanks to its special site: syntax ...
  • Sometimes you need throwaway files for various testing purposes or simply to take up required hard drive space. So I quickly whipped up the following applic ...
  • Have you created a website on the World Wide World? Are you afraid that no one will ever find it? Will it be forever lost in the great big darkness that is ...
  • For a change, I actually did some work at work today. For no reason other than what I can, starting today Im whipping up an online PDF generator application ...

About Craig Lotter

Craig Lotter is an established web developer and application programmer, with strong creative urges (which keep bursting out at the most inopportune moments) and a seemingly insatiable need to love all things animated. Living in the beautiful coastal town of Gordon's Bay in South Africa, he games, develops, takes in animated fare, trains under the Funakoshi karate style and for the most part, simply enjoys life with his amazing wife and daughter. Oh, and he draws ever now and then too.
This entry was posted in Technology & Code. Bookmark the permalink.
    blog comments powered by Disqus