Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

FileUpload don't create thumbnails if RewriteUrls = TRUE

I make config on fresh install and found if I change in config of Vanilla RewriteUrls = TRUE; Now FileUpload don't create thumbnails on upload folder.

In .htaccess all rewrite rules present and set On.

When I switch back in config file RewriteUrls = FALSE; All work ok. Thumbnails is created.
I'm not set off rewrite rules in apache's .htaccess, but thumbnails created and work.

So working of plugin depend only of flag in config "RewriteUrls".

How can i fix this? I need Friendly URL and at same time I need fileupload working.

Comments

  • 50sQuiff50sQuiff ✭✭
    edited March 2013

    I'm getting this exact issue too. As soon as I enable RewriteUrls, FileUpload image URLs and thumbnail URLs return 404. Non-image filetypes are not affected. Before I go through a lengthy debug process I just want to see if anyone has fixed this snag already.

    http://mysite.com/index.php?p=/discussion/download/58/myimage.png WORKS
    http://mysite.com/discussion/download/58/myimage.png FAILS

    RewriteUrls is causing no other problems as far as I can see.

  • we don't know your version of vanilla????????????????????

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • 50sQuiff50sQuiff ✭✭
    edited March 2013

    2.0.

    I doubt it's the best way but I've solved with problem with a couple of nginx rewrite rules:

    location ^~ /discussion/download/ { rewrite ^/(.+)$ /index.php?p=$1 last;}

    location ^~ /utility/thumbnail/ { rewrite ^/(.+)$ /index.php?p=$1 last;}

    Perhaps someone can weigh in with a better option. But if you're in need of a fix this will work for you.

    @lowrider, I don't use Apache but to convert these rules try this tool: http://labs.gidix.de/nginx/

  • AoleeAolee Hobbyist & Coder ✭✭

    arggg. i wasted 5hrs debugging this. last night after i switch to nginx and all i need is this 2 pcs of rewrite rule!

Sign In or Register to comment.