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: Creating Custom 404 Page For Coppermine  (Read 2662 times)

0 Members and 1 Guest are viewing this topic.

Saif

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 87
    • Free HD Wallpapers
Creating Custom 404 Page For Coppermine
« on: September 29, 2010, 02:54:24 pm »

http://www.orangewallpapers.com

I have a custom error page called 404Page.htm in a directory named 404 in root.
now, where do I edit the codes in .htaccess, so any broken gallery link gets redirected to my custom 404 page ?

Plz Advice.

Thanks
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Creating Custom 404 Page For Coppermine
« Reply #1 on: September 29, 2010, 03:54:49 pm »

Code: [Select]
ErrorDocument 404 /404/404Page.htm
Logged

Saif

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 87
    • Free HD Wallpapers
Re: Creating Custom 404 Page For Coppermine
« Reply #2 on: September 29, 2010, 04:03:38 pm »

Well, actually my question is where exactly in .htaccess do i write this ?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Creating Custom 404 Page For Coppermine
« Reply #3 on: September 29, 2010, 04:15:27 pm »

That's in no way related to Coppermine. http://httpd.apache.org/docs/2.0/mod/core.html#errordocument
Logged

Saif

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 87
    • Free HD Wallpapers
Re: Creating Custom 404 Page For Coppermine
« Reply #4 on: September 29, 2010, 04:27:09 pm »

ErrorDocument 404 /404/404Page.htm If I'm putting this code in .htaccess, its giving me error 500 :(
So that is what I'd like to know where do I insert this code in .htaccess so the gallery works fine & broken urls also get redirected.

Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.