More webloggers voor Azië

| | Comments (0) | TrackBacks (0)

Tomorrow will be the day that many Dutch blogs will show the special action page. The list of participating bloggers is getting bigger and bigger, and includes some prominent bloggers. You can read all about it on the action page.

Today I received the instructions, which consist of simply replacing the index.html page with the action page. This won't work for Movable Type blogs, since MT will overwrite the index.html page when a comment is posted to an entry. Furthermore, I wanted the page to show up for all requests, since many visitors enter the site through Google, and won't see the home page. And finally, I am a lazy person, so I want this to happen automagically.

Therefore I uploaded the file as actie.html and changed my .htaccess file to (temporary) redirect all requests for html pages to the action page. I used the following code:

RewriteEngine on
RewriteBase /
RewriteCond %{TIME_YEAR}%{TIME_MON}%{TIME_DAY} >20050105
RewriteCond %{TIME_YEAR}%{TIME_MON}%{TIME_DAY} <20050107
RewriteCond %{REQUEST_FILENAME} index\.s?html$
RewriteRule ^(.*) /actie.html [L,R]

Furthermore I hace changed the action page a little bit. The page basically consisted of a table-based layout, with a single image showing the text. For once I won't complain about table-based layout, since we are working for a good cause, and I value the work they have put into this project. But I did take the freedom to add an alternative text to the image, so that visitors that cannot see the image also know what is going on.

Categories:

Leave a comment

0 TrackBacks

Listed below are links to blogs that reference this entry: More webloggers voor Azië.

TrackBack URL for this entry: http://mt.ai-no.com/mt-tb.cgi/503

About this Entry

This page contains a single entry by Jeroen Sangers published on January 5, 2005.

In the Jukebox: K's Choice was the previous entry in this blog.

In the Jukebox: Muse is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.12