Redirect error page Redirect error page
 

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]

Main Menu

Redirect error page

Started by bprm, October 09, 2007, 02:45:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bprm

Hello,

I moved several month ago some albums, but Google still displays in its results links to old albums urls, with error message (The selected album/file does not exist !).  :-\

I'd like to redirect automatically these error pages to main site url (instantly or after a few seconds). This do not works with .htaccess (probably due by "?=.." parameter).

Is there any way to make this redirection in coppermine code itself ? (redirection to home page or to new albums).

Nb : actually, I only modified the error message itself, and included a link to home page. But this is not very user friendly....


Thanks for your help

bprm

Hello,

Is there any way to make a redirection or alias in Coppermine code or database ?  ???
I absolutely need to redirect 4 url like this : /displayimage.php?album=1\&pos=0 to another album or to home page.
Any idea ? Thanks for your help

Joachim Müller

There's no such mechanism built into Coppermine. You could preferably come up with a redirection rule using .htaccess.

bprm

Quote from: GauGau on October 16, 2007, 05:23:22 PM
There's no such mechanism built into Coppermine. You could preferably come up with a redirection rule using .htaccess.

I tried this, but the "redirect permanent" syntax do not works with this kind of dynamic URI, and I don't know how to do this with the rewrite rules.

bprm

That's not a complete solution, but this will helps, waiting I find better : I added a sitemap in the language file (french), this will be more user friendly than a basic error message....

Example : http://www.photo-paysage.com/displayimage.php?album=1&pos=0