While in the process of setting up a Dokuwiki install I came across a problem with generating clean URLs using Apache rewriting.

The installation comes with a default .htaccess which is,

RewriteEngine on
 
RewriteBase /dokuwiki
 
RewriteRule ^_media/(.*)              lib/exe/fetch.php?media=$1  [QSA,L]
RewriteRule ^_detail/(.*)             lib/exe/detail.php?media=$1  [QSA,L]
RewriteRule ^_export/([^/]+)/(.*)     doku.php?do=export_$1&id=$2  [QSA,L]
RewriteRule ^$                        doku.php  [L]
RewriteCond %{REQUEST_FILENAME}       !-f
RewriteCond %{REQUEST_FILENAME}       !-d
RewriteRule (.*)                      doku.php?id=$1  [QSA,L]
RewriteRule ^index.php$               doku.php

However on 1and1 shared hosting when serving Dokuwiki directly from the domain root directory I need the following change,

RewriteEngine on
 
RewriteBase /
 
RewriteRule ^_media/(.*)              lib/exe/fetch.php?media=$1  [QSA,L]
RewriteRule ^_detail/(.*)             lib/exe/detail.php?media=$1  [QSA,L]
RewriteRule ^_export/([^/]+)/(.*)     doku.php?do=export_$1&id=$2  [QSA,L]
RewriteRule ^$                        doku.php  [L]
RewriteCond %{REQUEST_FILENAME}       !-f
RewriteCond %{REQUEST_FILENAME}       !-d
RewriteRule (.*)                      doku.php?id=$1  [QSA,L]
RewriteRule ^index.php$               doku.php

While the moment I thought of this it became obvious the documentation within the file suggest this is an unlikely value to edit and also presents it elsewhere to the RewriteEngine so not as obvious as I thought it could be.

We have an election in the UK soon and here are my flippant questions to ask of the candidates;

Trident

Suggest a situation that would cause you to use Trident?

Housing

What circumstance in a persons life need to come about for it to be appropriate that they are homeless?

Employment

Would you prefer a land-mine sales person to go to work or quit and claim JSA?

Environment

What obligation do you feel we have to the planet?

Europe

What current situation do you feel that as a nation we could respond to better being outside of Europe?

Congrautlations to Leo Leporte and the TWIT team on their tenth anniversary of This Week in Tech.

From the 2015 Paris–Roubaix

Don’t be silly on your bike around trains folks.

An excerpt of John Oliver interview with Edward Snowden where they discuss the need to shift away from the idea of passwords towards the idea of pass-phrases.

It surprising how many passwords requirements still encourage hard to remember short passwords, like ‘Gf65&$e’ while preventing people from using easy to remember hard to brute force longer pass-phrases, such as ‘youaskifilikefishfingers?idonot!’.