Advanced search  

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

Pages: [1]   Go Down

Author Topic: Creating Custom 404 Page For Coppermine  (Read 2663 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.018 seconds with 20 queries.