• Resolved giraffe2011

    (@giraffe2011)


    plugins already running:
    w3total cache plugin
    theme uses timthumb.php

    After installing and activating i configured all settings enabled beta redirection to post page as well.
    emptied all caches.
    hard refresh on browser
    after searching in google following happens:
    click on a picture takes you to directory with pictures on the server
    click on view original picture gives 404 error
    click on visit website takes to website.

    any help appreciated

    http://wordpress.org/extend/plugins/imaguard/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author imaguard

    (@imaguard)

    Hi,

    Can you email a link to your blog to admin@imaguard.com? Also it would be great if you could email us the entire content of your .htaccess file in your wp root folder.

    Please also let us know what version of WP you are running.

    Thread Starter giraffe2011

    (@giraffe2011)

    email sent.

    Plugin Author imaguard

    (@imaguard)

    Try sending it again – you probably sent it to admin@imaguar.com instead of admin@imaguard.com which was what I first types and then I edited the post. You are very quick πŸ™‚

    Thread Starter giraffe2011

    (@giraffe2011)

    lol i did i realized myself

    Plugin Author imaguard

    (@imaguard)

    Got it now! There are no imaguard entries in your htaccess file. Even if you have disabled it, there should be a blank section marked imaguard.

    For one reason or another your htaccess file has not been amended. Try to reactivate imaguard and keep attention to the top of the plugin page after it refreshes after activation for error messages. Then go to the imaguard settings. You may be getting an error that Imaguard could not write to your htaccess file.

    Then before deactivating imaguard, send us the htaccess text again so we can check it while the plugin is active.

    You have a very complicated htaccess file with cache plugins overriding all image settings and forcing cache on these. Cache doesn’t work well with Imaguard since it redirects / watermarks on the fly. But we’ll try to figure it out.

    Thread Starter giraffe2011

    (@giraffe2011)

    ok reactivated plugin now, still 404 errors and no overlay, sent email with htacess

    Plugin Author imaguard

    (@imaguard)

    Had a look at it. You were missing all linebreaks in the Imaguard section.

    Could you activate it again, then go into your htaccess file and replace the imaguard section manually with this:

    # BEGIN imaguard
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^http://(.+\.)? [NC]
    RewriteCond %{HTTP_REFERER} !^http://(.+\.)?youtube\.com [NC]
    RewriteCond %{HTTP_REFERER} !^http://(.+\.)?facebook\.com [NC]
    RewriteCond %{HTTP_REFERER} !^http://(.+\.)?twitter\.com [NC]
    RewriteRule ^(.*)\.(jpg|png|jpeg|gif)$ /show-image/?img=/$1.$2 [R=302,NC,L]
    # END imaguard

    Then deactivate your cache plugin and see if it works. If it does, we are at least one step further.

    Thread Starter giraffe2011

    (@giraffe2011)

    ok that code is exactly same as i have in my htacess i think linebreaks got eaten in email
    w3total cache is disabled my htacess looks now like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>
    # END WordPress
    
    # BEGIN imaguard
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^http://(.+\.)? [NC]
    RewriteCond %{HTTP_REFERER} !^http://(.+\.)?youtube\.com [NC]
    RewriteCond %{HTTP_REFERER} !^http://(.+\.)?facebook\.com [NC]
    RewriteCond %{HTTP_REFERER} !^http://(.+\.)?twitter\.com [NC]
    RewriteRule ^(.*)\.(jpg|png|jpeg|gif)$ /show-image/?img=/$1.$2 [R=302,NC,L]
    # END imaguard
    Plugin Author imaguard

    (@imaguard)

    Ok, I’ve had a look. You can turn the plugin off for now. Give me a few minutes to go through the info I noted.

    Plugin Author imaguard

    (@imaguard)

    The 404 problem is being caused by the permanent redirect you have in your root folder. If you change this line

    $rules[] = 'RewriteRule ^(.*)\.(jpg|png|jpeg|gif)$ /show-image/?img=/$1.$2 [R=301,NC,L]';

    in index.php to

    $rules[] = 'RewriteRule ^(.*)\.(jpg|png|jpeg|gif)$ /blog/show-image/?img=/$1.$2 [R=301,NC,L]';

    it should fix the 404 error.

    You may want to consider changing your redirect in your root folder to a more dynamic one at a later stage so that

    yoursite.com/this/that

    gets redirected to yoursite.com/blog/this/that. But as I said, the above should work for now.

    Thread Starter giraffe2011

    (@giraffe2011)

    i think you meant htacess file

    Thread Starter giraffe2011

    (@giraffe2011)

    oh i have now internal server error πŸ˜›

    Plugin Author imaguard

    (@imaguard)

    No, but I was unclear. I meant the plugin index.php file:

    wp-content/plugins/imaguard/index.php

    Change that line and the htaccess file should come out right, though if you download an update of the plugin later, you may have to amend again.

    Sorry for the imprecise reference.

    Plugin Author imaguard

    (@imaguard)

    >oh i have now internal server error πŸ˜›

    Yup, try to remove everything in the imaguard section on your htaccess file, change plugin index.php and reactivate and it should generate again.

    You are just too fast for me to keep up with replies πŸ™‚

    Thread Starter giraffe2011

    (@giraffe2011)

    Thank you for your help
    i managed to edit htacess manually,
    seems to work now but it takes a while to put overlay over image why is that ?
    Also i know it is going a bit too far but could you give me a general idea how to make a dynamic redirection as you mentioned?

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘doesn't work at all’ is closed to new replies.