Index: trunk/phase3/thumb.config.sample |
— | — | @@ -14,7 +14,12 @@ |
15 | 15 | * 1) Copy this file to thumb.config.php and modify the settings. |
16 | 16 | * 2) The webserver must be setup to have thumb-handler.php as a 404 handler. |
17 | 17 | * This can be done in apache by editing .htaccess in the /thumb directory by adding: |
18 | | - * ErrorDocument 404 /path/to/thumb_handler.php |
| 18 | + * <IfModule rewrite_module> |
| 19 | + * RewriteEngine on |
| 20 | + * RewriteCond %{REQUEST_FILENAME} !-f |
| 21 | + * RewriteCond %{REQUEST_FILENAME} !-d |
| 22 | + * RewriteRule ^([^/]+/)?[0-9a-f]/[0-9a-f][0-9a-f]/[^/]+/[^/]+$ /path/to/thumb_handler.php [L] |
| 23 | + * </IfModule> |
19 | 24 | */ |
20 | 25 | |
21 | 26 | $thgThumbUrlMatch = array( |