Topic on Talk:MediaWiki 1.21

Thumbnails Not Working

1
Declanf1 (talkcontribs)

Having issues with thumbnails on my wiki, ever since I enabled short URLs, everything has been working fine apart from thumbnails no longer show up

I have mediawiki installed in the root directory (shared hosting), and have set my shortURLs to be http://website.com/wiki

From searching this site and google I have gathered its most likely a problem with my htaccess files, I currently have it set to

RewriteEngine On

RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d

RewriteRule ^/?images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2 [L,QSA,B]

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d

RewriteRule ^/?images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]

and the htaccess in my images directory is

# Protect against bug 28235

<IfModule rewrite_module>

RewriteEngine On

RewriteCond %{QUERY_STRING} \.[^\\/:*?\x22<>|%]+(#|\?|$) [nocase]

RewriteRule . - [forbidden]

# Fix for bug T64289

Options +FollowSymLinks

</IfModule>

my site seems to be looking in the correct place on my host for the files however any thumbnail files uploaded after the short URL change are not being created (I have the folder permissons set to 755)

Can anyone help with this please

Reply to "Thumbnails Not Working"