Redirecting a category thumbnail and title to an external site Redirecting a category thumbnail and title to an external site
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Redirecting a category thumbnail and title to an external site

Started by BradInOKC, November 04, 2010, 04:09:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BradInOKC

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

Αndré

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.

BradInOKC

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.

BradInOKC

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:

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

Αndré

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

BradInOKC

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?

BradInOKC

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?

Αndré

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

BradInOKC


Αndré

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?

BradInOKC