coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: fffanatics on February 01, 2006, 11:42:16 PM

Title: Updating Database - Base URL
Post by: fffanatics on February 01, 2006, 11:42:16 PM
I was wondering if there was a way to update the database so that you can replace all of the links. For instance, right now, Coppermine has all of the links in the following fashion:

http://s90678298.onlinehome.us/Album/thumbnails.php?album=88

However, you can get to the same page by going to:

http://joel.poloney.com/thumbnails.php?album=88

Is there something that I can do to update all of the links so that they are changed from http://s90678298.onlinehome.us/Album/ to http://joel.poloney.com/ ?

Thanks,
Joel Poloney
Title: Re: Updating Database - Base URL
Post by: kegobeer on February 02, 2006, 01:22:19 AM
Are you using some sort of redirection service?  If you actually own the poloney.com domain, and the files resided on the poloney.com domain, then the links would be correct.
Title: Re: Updating Database - Base URL
Post by: fffanatics on February 02, 2006, 01:25:29 AM
The files don't reside on the poloney.com domain, they reside on another server. I have a symbolic link redirecting to the other server.
Title: Re: Updating Database - Base URL
Post by: Joachim Müller on February 02, 2006, 09:49:08 AM
coppermine doesn't store full URLs in the database, but relative ones. Pages themselves are being identified by ID only. Imo you should be able to come up with a custom .htaccess file that does the redirection if you're allowed to use mod_rewrite.