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.