Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!
Osiris, I know you said you’re not running PHP as a CGI but another fellow here that was on Dreamhost had the same problem and I want you to try what fixed his problem. Change your .htaccess file to this:
If you run PHP4, change it to:
AddHandler php-cgi .png
If you run PHP5 change it to:
AddHandler php5-cgi .png
Let me know if that doesn’t work, or contact me personally via gTalk (firstname.lastname@example.org) or aim jabarker5506.
This pepper is great! I have always wanted a simple solution for this problem.
I had to resort to the RewriteRule method to get it to work, none of the AddHandler lines would work on my Slicehost VPS. I’m running the default versions of apache2 and php when you install them with Gentoo Linux.
Anyway, I was wondering if you have looked into ignoring hits that contain the Mint cookie.
The cookie that gets set looks like “MintIgnore=true”
It does not register the hit when I visit register.png directly, but it does show up as a broken image rather than attempting to download it.
I should add though, that I was mistaken earlier on the server, I was thinking of a different client. This one is not on dreamhost and it’s a PHP4 server, so I switched to the ‘AddHandler php-cgi .png’ (although both seem to prevent downloading of the image.)
Anything else you need to know, just let me know.
Has anyone figured out how to change the .htaccess for a standard dreamhost account? I tried out every suggestion from the thread to manipulate the .htaccess but without success.
In my case I can download the “png” file and hits will not be tracked. Any idea ?
On my own server, running Apache 1.3.37 with php-4.4.8, with
AddType application/x-httpd-php .png
in the .htaccess but accessing shokk.com/mint/pepper/johnbarker/myspace/register.png
which comes from the page myspace.com/eoporto
it still asks me to download the file, but only on the system that is ignoring Mint cookies. It works for other systems accessing the page.
Is there anything else I should be looking at or should I just ignore this?
It only asks for the download when I myself attempt to visit the .png so it must have to do with the cookie. But for all the other millions of potential visitors on the internet, so I’ll stop trying to be a perfectionist if it works for you. =) Thanks for checking.