Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Redirecting a category thumbnail and title to an external site  (Read 4507 times)

0 Members and 1 Guest are viewing this topic.

BradInOKC

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Redirecting a category thumbnail and title to an external site
« on: November 04, 2010, 04:09:11 pm »

My gallery is at 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Redirecting a category thumbnail and title to an external site
« Reply #1 on: November 05, 2010, 03:49:22 pm »

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.
Logged

BradInOKC

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: Redirecting a category thumbnail and title to an external site
« Reply #2 on: November 06, 2010, 09:37:04 pm »

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.
Logged

BradInOKC

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: Redirecting a category thumbnail and title to an external site
« Reply #3 on: November 08, 2010, 07:42:20 pm »

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:

Quote
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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Redirecting a category thumbnail and title to an external site
« Reply #4 on: November 08, 2010, 07:52:10 pm »

Put it in the Coppermine directory or any directory above. Change
Code: [Select]
Redirect builderbobs.com/gallery/floortoceiling/index.php?cat=42 http://www.coasterfurniture.comto
Code: [Select]
Redirect /gallery/floortoceiling/index.php?cat=42 http://www.coasterfurniture.com(not tested).
Logged

BradInOKC

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: Redirecting a category thumbnail and title to an external site
« Reply #5 on: November 08, 2010, 08:15:52 pm »

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?
Logged

BradInOKC

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: Redirecting a category thumbnail and title to an external site
« Reply #6 on: November 08, 2010, 10:27:28 pm »

I think it has to do with the
Quote
?cat=42
at the end of the index.php extension...maybe it won't redirect that way?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Redirecting a category thumbnail and title to an external site
« Reply #7 on: November 08, 2010, 10:48:21 pm »

I'm currently not sure. Will perform some tests tomorrow.
Logged

BradInOKC

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: Redirecting a category thumbnail and title to an external site
« Reply #8 on: November 08, 2010, 10:58:56 pm »

Seriously, thank you very much. 
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Redirecting a category thumbnail and title to an external site
« Reply #9 on: November 09, 2010, 10:14:17 am »

If you have mod_rewrite enabled, create a .htaccess file with the following content in your Coppermine directory:
Code: [Select]
RewriteEngine On
RewriteCond %{QUERY_STRING} ^cat=42$
RewriteRule ^index\.php$ http://www.coasterfurniture.com?
Logged

BradInOKC

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: Redirecting a category thumbnail and title to an external site
« Reply #10 on: November 09, 2010, 03:07:37 pm »

Thank you!!  That worked! 
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.