Home Forums WordPress Plugins Hide My WP Timthumb error

This topic is: not resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #107
    Post count: 5

    Dear Hide-My-WP team,

    I am experiencing an issue with the Timthumb.php file…I read many comments with same issue and your answers and also your guidelines in the FAQ but I couldnt get the right solution to my issue.

    I am working offline (WAMP server) so I can’t provide online links but I’ll be as clear as I can:

    The base url of the wordpress website is : http://xx/new/

    I am using a plugin that uses timthumb.php and the thumbs are called using this kind of links:


    the images are in wp-content/fancygallery/ subfolders

    what i am trying to do is to change this portion of the url (i.e. wp-content/fancygallery/) to “gal” so that the images would be called like this :


    I added in the Replace URLS field :


    because I have other references to wp-content/fancygallery/ that I wanted to change to gal/

    In the Replace HTML field I added :

    timthumb.php?src[equal]http%3A%2F%2Fxx%2Fnew%2Fwp-content%2Ffancygallery%2F = timthumb.php?src[equal]http%3A%2F%2Fxx%2Fnew%2Fgal%2F

    While direct access to the images through links like this works:
    those ones, dont :


    What have I done wrong ?

    I tried with relative urls, but it doenst work neither

    Ps: I excluded timthumb.php (the direct access part).

    Thanks for your time and help !

    Post count: 955


    Well, as I said in that FAQ TimThumb doesn’t support virtual addresses so you can’t change it to new name ‘gal’. Instead, you have to use relative URLs. Something like below:


    Therefor, you should have following in Replace in HTML:
    timthumb.php?src[equal]http%3A%2F%2Fxx%2Fnew%2Fwp-content%2Ffancygallery%2F = timthumb.php?src[equal]..%2F..%2F..%2Ffancygallery%2F

    You can still use ‘gal’ name by renaming fancygallery folder in wp-content and using this rule:
    timthumb.php?src[equal]http%3A%2F%2Fxx%2Fnew%2Fwp-content%2Ffancygallery%2F = timthumb.php?src[equal]..%2F..%2F..%2Fgal%2F

    But you may have difficulties in admin section as Replace in HTML doesn’t work in backend.

    You can always use New Upload Path or Replace URLs to change other (non-TimThumb) URLs.

    Post count: 5


    Thanks for your support !

    I tried also with relative path

    timthumb.php?src[equal]http%3A%2F%2Fxx%2Fnew%2Fwp-content%2Ffancygallery%2F = timthumb.php?src[equal]..%2F..%2F..%2Ffancygallery%2F

    and got the same issue (i.e. Could not find the internal image you specified. when looking at the image timthumb link).

    I am guessing it comes from the relative path.
    I tried adding those two lines in the htaccess (with customized htaccess checked and hidemywp lines added to the htaccess)

    SecFilterEngine Off
    SecFilterScanPost Off

    but i got a 500 error.

    I have access to the php.ini (on my offline and online servers), is there any other solution ? (secured)

    Thanks in advance for your time

    Post count: 5


    did you had a chance to look at my issue please ?

    Thank you very much in advance !


    Post count: 955

    Sorry for such a long delay, I was working on new version. 😐

    If it was online I could take a look and try different possibilities.

    First make sure this works, if not means our path are wrong:

    Now try these other possibilities:



    If one of above works means we found the solution and only need a rule to replace old URLs with new ones.

    Also try this one, (the same but removed %2F from second part)
    timthumb.php?src[equal]http%3A%2F%2Fxx%2Fnew%2Fwp-content%2Ffancygallery%2F = timthumb.php?src[equal]../../../fancygallery/

    I haven’t experience with mod_security but error 500 usually means your htaccess syntax is wrong.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.