htaccess file located in mckittricks.org/test
# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /test/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_URI} !/test/main\.php$
RewriteRule . - [L]
RewriteCond %{QUERY_STRING} view=core.DownloadItem
RewriteCond %{HTTP:Referer} !^[a-zA-Z0-9\+\.\-]+://www.mckittricks.org/ [NC]
RewriteCond %{HTTP:Referer} !^$
RewriteRule . /test/main.php [F,L]
RewriteCond %{QUERY_STRING} g2_view=core.DownloadItem
RewriteCond %{QUERY_STRING} g2_itemId=([0-9]+)
RewriteCond %{HTTP:Referer} !^[a-zA-Z0-9\+\.\-]+://www.mckittricks.org/ [NC]
RewriteCond %{HTTP:Referer} !^$
RewriteRule . /test/main.php?g2_view=rewrite.DownloadItem&g2_itemId=%1 [L]
RewriteCond %{THE_REQUEST} /test/v/(\?.|\ .)
RewriteCond %{REQUEST_URI} !/test/main\.php$
RewriteRule . /test/main.php [QSA,L]
RewriteCond %{THE_REQUEST} /test/d/([0-9]+)\-([0-9]+)/([^/?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/test/main\.php$
RewriteRule . /test/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L]
</IfModule>
# END Url Rewrite section
Posts: 11
Just to add, I also get this quite often. Not sure if it's related.
I've searched around here and Google but can't find any answer to why I keep getting these errors.
Posts: 11
Well, after a day, I came back to the forum and searched again and tried a few things.
Finally getting something to work. YEA!!!
For some reason the built in option to block hot linking dosn't seem to work but I found a way by mixing some code from this topic:
http://gallery.menalto.com/node/8329
Having this in my httpd.conf dosn't seem to matter so I got rid of it:
Haven't had any PHP errors today but I haven't been mass uploading thousands of images today either. My production site has 14000 images in it. All uploaded over a full day.
http://www.sportsonephoto.com/gallery/
So, here is my .htaccess file.