forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Aeronautic on January 22, 2015, 09:00:09 pm

Title: Coppermine Specific Apache redirect / rewrite in .htaccess?
Post by: Aeronautic on January 22, 2015, 09:00:09 pm
I was going to post this in no support but it looks like I can't so please don't yell too loudly at me for asking for help here.

This does relate to an older install of Coppermine in the 1.4 family.

I need to do a permanent redirect from the old urls like this one:

Quote
/someold-folder/displayimage.php?pos=-1234

to this sample:

Quote
/somenew-folder/a-file-name/

I'm running Apache and cPanel... Using the built in redirect tool it cuts off everything after the .php

Trying to experiment with all kinds of recipes found online is not yielding any results either. My guess is there is a flag, etc., that I'm not understanding to catch the code after the .php string.

This is often posted but does not work:

Code: [Select]
Redirect 301 /oldpage.html http://www.example.com/newpage.html
I'm really at a loss and don't want to simply delete the old Coppermine file and leave it with a 404. I thought perhaps some of you with extensive Coppermine and Apache experience might have been through this before.

Thank you!
Title: Re: Coppermine Specific Apache redirect / rewrite in .htaccess?
Post by: Aeronautic on January 22, 2015, 09:07:30 pm
I forgot to add that I need to do this, sigh  :'(, one file at a time, as I am making the move one at a time. So a global, catch-all won't work. And the new urls are not compatible with a global solution (I'm not simply trying to remove an extension or PID variable).
Title: Re: Coppermine Specific Apache redirect / rewrite in .htaccess?
Post by: phill104 on January 25, 2015, 04:53:41 pm
Unfortunately, we have not supported CPG 1.4.x for a few years now. You really need to upgrade or at some point you will get hacked.