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: Coppermine Specific Apache redirect / rewrite in .htaccess?  (Read 4932 times)

0 Members and 1 Guest are viewing this topic.

Aeronautic

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 125
  • Photographer / film maker turned webmeister...
Coppermine Specific Apache redirect / rewrite in .htaccess?
« 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!
Logged

Aeronautic

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 125
  • Photographer / film maker turned webmeister...
Re: Coppermine Specific Apache redirect / rewrite in .htaccess?
« Reply #1 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).
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Coppermine Specific Apache redirect / rewrite in .htaccess?
« Reply #2 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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.