forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: Hanna. on January 23, 2012, 12:19:51 pm

Title: Images not displaying (thumbs, normal, full)
Post by: Hanna. on January 23, 2012, 12:19:51 pm
Weeks ago I switched hosts and they backup-ed my database for Coppermine and moved it from http://67.159.44.20/~kristind/photos to http://kristindaily.org/photos/. If you hit those two pages you will see the difference pretty clear. I have tried to run update.php and admin tools to update everything but none of it works.

I'm not sure what to try next? I need the photos to work... I have over 30,000 files in there.

Please help me out!
Title: Re: Images not displaying (thumbs, normal, full)
Post by: Αndré on January 23, 2012, 12:40:19 pm
I just checked some picture paths and always got an HTTP 404 error code. Please check your albums directory if your files & folders are present at the new location.
Title: Re: Images not displaying (thumbs, normal, full)
Post by: Hanna. on January 25, 2012, 10:54:06 am
It will take a while, but don't close this topic just yet. The database backup went through, now I just need to transfer the files? Then what? I run update.php or?

Thanks,
Title: Re: Images not displaying (thumbs, normal, full)
Post by: Αndré on January 25, 2012, 11:13:57 am
http://documentation.coppermine-gallery.net/en/export.htm#moving
Title: Re: Images not displaying (thumbs, normal, full)
Post by: Hanna. on February 05, 2012, 08:05:45 pm
I have figured that out now. But I still have one question... Is it possible to block hotlinking for certain images on my server. In this case I'd like to protect my normal_ (prefix pics). Can somebody give me the PHP code for it or whatever? I really need it. Thanks.
Title: Re: Images not displaying (thumbs, normal, full)
Post by: Stramm on February 06, 2012, 11:41:53 am
.htaccess
Code: [Select]
<Files normal_*>
    Order deny,allow
    Deny from all
    Allow from localhost
</Files>

that'll allow local scripts to access the pics. If you do not want that, remove the line starting with Allow
Title: Re: Re: Images not displaying (thumbs, normal, full)
Post by: Hanna. on February 06, 2012, 12:56:37 pm
.htaccess
Code: [Select]
<Files normal_*>
    Order deny,allow
    Deny from all
    Allow from localhost
</Files>

that'll allow local scripts to access the pics. If you do not want that, remove the line starting with Allow

Fantastic! It works!!! Thank you SO much!
Title: Re: Images not displaying (thumbs, normal, full)
Post by: Hanna. on February 06, 2012, 09:07:59 pm
It works with the hotlinking, but what if I upload the .htaccess to the /photos directory? Then the photos on public_html won't get affected, right? As it looks now, Facebook can't reach my photos from the mainpage... It's because of these .htaccess settings.
Title: Re: Images not displaying (thumbs, normal, full)
Post by: Αndré on February 24, 2012, 03:58:50 pm
Please read and follow our board rules.

Marking as solved and locking.