* RewriteEngine on * RewriteCond %{REQUEST_FILENAME} !-f * RewriteCond %{REQUEST_FILENAME} !-d * RewriteRule ^([^/]+/)?[0-9a-f]/[0-9a-f][0-9a-f]/[^/]+/[^/]+$ /path/to/thumb_handler.php [L] * */ $thgThumbUrlMatch = array( # URL name of the server (e.g. "upload.wikipedia.org"). 'server' => 'http://localhost', # URL fragment to the thumb/ directory 'dirFragment' => 'MW_trunk/images/thumb', # URL regex fragment correspond to the directory hashing of thumbnails. # This must correspond to $wgLocalFileRepo['hashLevels']. 'hashFragment' => '[0-9a-f]/[0-9a-f][0-9a-f]/' // 2-level directory hashing ); $thgThumbCurlConfig = array( # Optionally cURL to thumb.php instead of using it directly 'enabled' => false, # The URL to thumb.php, accessible from the web server. 'url' => 'http://localhost/MW_trunk/thumb.php', # Optional proxy server to use to access thumb.php 'proxy' => null, # Timeout to use for cURL request to thumb.php. # Leave it long enough to generate a ulimit timeout in ordinary # cases, but short enough to avoid a local PHP timeout. 'timeout' => 53 ); # Custom functions for overriding aspects of thumb handling $thgThumbCallbacks = array();