Suggest RewriteEngine in sample config instead of ErrorDocument to get correct status...
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 29 Oct 2011 22:07:37 +0000 (22:07 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 29 Oct 2011 22:07:37 +0000 (22:07 +0000)
thumb.config.sample

index 97cb922..84445c1 100644 (file)
@@ -14,7 +14,12 @@ if ( !defined( 'THUMB_HANDLER' ) ) {
  * 1) Copy this file to thumb.config.php and modify the settings.
  * 2) The webserver must be setup to have thumb-handler.php as a 404 handler.
  *    This can be done in apache by editing .htaccess in the /thumb directory by adding:
- *       ErrorDocument 404 /path/to/thumb_handler.php
+ *    <IfModule rewrite_module>
+ *          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]
+ *    </IfModule>
  */
 
 $thgThumbUrlMatch = array(