coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: CGPhotos on October 11, 2006, 06:58:18 PM

Title: Forward
Post by: CGPhotos on October 11, 2006, 06:58:18 PM
Can someone tell me how and where to edit the script to have the address to my gallery on the old server open to the address to the gallery on my new domain/server?
Title: Re: Forward
Post by: Joachim Müller on October 11, 2006, 08:18:24 PM
Use any type of redirection you could think of - not related to coppermine.
Different aspects of redirecting are discussed on many pages on the internet, e.g. http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm
Title: Re: Forward
Post by: CGPhotos on October 12, 2006, 02:04:07 PM
Thank you, I was hoping there was a just script somewhere I could just change the address in.
Title: Re: Forward
Post by: Joachim Müller on October 12, 2006, 07:28:23 PM
The page I refered to in fact offers you several easy methods - it doesn't get easier than that. If you prefer PHP, you could use this:<?php
header
("HTTP/1.1 301 Moved Permanently");
header("Location:http://your-new-domain.tld");
exit;
?>
. If you're keen to edit a Coppermine file (making things complicated), just add above code to index.php (at the very top) if you prefer.
Title: Re: Forward
Post by: CGPhotos on October 13, 2006, 02:54:57 PM
Thank you guys for the help here, I was lnot able to get the script to work, however, my host had a redirect in my control panel.   ::)