1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Remove query strings "?" from timthumb url

Discussion in 'WordPress' started by Rajnish357, Feb 15, 2012.

  1. #1
    Hello,

    While Doing a Site speed test I found that Resources with a "?" in the URL are not cached by some proxy caching servers and hence make page load slow.

    Can any one please tell me How to remove that "?" from timthumb urls ? because I widely timthumb and that why it make a big impact on my site load speed.

    Any help will be appreciated !!
     
    Rajnish357, Feb 15, 2012 IP
  2. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #2
    I'm going to need an example, or even better an actual link.
     
    hmansfield, Feb 15, 2012 IP
  3. Rajnish357

    Rajnish357 Well-Known Member

    Messages:
    157
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #3
    @hmansfield
    Thanks for your reply, here is the actual link check the "?"

    http://www.digmlm.com/wp-content/themes/freshlife/includes/timthumb.php[B]?[/B]src=http://www.digmlm.com/wp-content/uploads/2012/02/Pinterest-Logo.png&h=140&w=140&zc=1
    Code (markup):
     
    Rajnish357, Feb 15, 2012 IP
  4. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #4
    I don't think you can remove it without recoding how the plug in works. The "?" seems to be the trigger that calls the specific image URL.
    If you remove it, it definitely won't work. And you can't change it to something else.

    What you need to do it rewrite your URLs using a combination of code changes and modifying your .htaccess file.

    I've never tried it, so I can't vouch for it's effectiveness, but here is an article that explains it better with a possible solution:
    http://revisedagain.com/2011/custom-rewrite-rules-with-wordpress-timthumb/
     
    hmansfield, Feb 15, 2012 IP