Coppermine Specific Apache redirect / rewrite in .htaccess? Coppermine Specific Apache redirect / rewrite in .htaccess?
 

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

Coppermine Specific Apache redirect / rewrite in .htaccess?

Started by Aeronautic, January 22, 2015, 09:00:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Aeronautic

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:

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!

Aeronautic

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

phill104

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.
It is a mistake to think you can solve any major problems just with potatoes.