forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started 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!
-
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.
-
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,
-
http://documentation.coppermine-gallery.net/en/export.htm#moving
-
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.
-
.htaccess
<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
-
.htaccess
<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!
-
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.
-
Please read and follow our board rules.
Marking as solved and locking.