forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: BradInOKC on November 04, 2010, 04:09:11 pm
-
My gallery is at http://www.builderbobs.com/gallery/floortoceiling/index.php (http://www.builderbobs.com/gallery/floortoceiling/index.php)
I am trying to change the place people go to when they click on the category "Coaster Fine Furniture". I would prefer it redirect them to www.coasterfurniture.com instead of taking them further into my gallery. Is there a way to do that? Or can you tell me what file I would need to edit to change the url attached to the link and the thumbnail? Thank you for your help.
Brad
-
You're running cpg1.5.6, but the latest release is cpg1.5.8.
Regarding your question: I'd create a redirection via htaccess, so you don't have to edit something in Coppermine.
-
I don't think I have access to use .htaccess files...I'll have to check with my web host... Thanks for the heads up on the version change, didn't know there was an update.
-
Andre or anyone: Can you please tell me where to put the .htaccess file in order to redirect a link on my main index page to an external site? The contents of my .htaccess file are:
Redirect builderbobs.com/gallery/floortoceiling/index.php?cat=42 http://www.coasterfurniture.com
Is that right? I know this borders on not being coppermine related...but since you suggested it I am hoping you might have some insight for me. Thank you for any help anyone might offer.
-
Put it in the Coppermine directory or any directory above. Change
Redirect builderbobs.com/gallery/floortoceiling/index.php?cat=42 http://www.coasterfurniture.com
to
Redirect /gallery/floortoceiling/index.php?cat=42 http://www.coasterfurniture.com
(not tested).
-
Just won't work...I dunno what it could be. I've tried moving it to different directories, etc.. thank you for your help though.
Can you tell me which coppermine file I would need to edit to recode it to go to that external url isntead? Would it be my mysql database i'd have to edit?
-
I think it has to do with the
?cat=42
at the end of the index.php extension...maybe it won't redirect that way?
-
I'm currently not sure. Will perform some tests tomorrow.
-
Seriously, thank you very much.
-
If you have mod_rewrite enabled, create a .htaccess file with the following content in your Coppermine directory:
RewriteEngine On
RewriteCond %{QUERY_STRING} ^cat=42$
RewriteRule ^index\.php$ http://www.coasterfurniture.com?
-
Thank you!! That worked!