forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: Saif on September 29, 2010, 02:54:24 pm

Title: Creating Custom 404 Page For Coppermine
Post by: Saif 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
Title: Re: Creating Custom 404 Page For Coppermine
Post by: Αndré on September 29, 2010, 03:54:49 pm
Code: [Select]
ErrorDocument 404 /404/404Page.htm
Title: Re: Creating Custom 404 Page For Coppermine
Post by: Saif on September 29, 2010, 04:03:38 pm
Well, actually my question is where exactly in .htaccess do i write this ?
Title: Re: Creating Custom 404 Page For Coppermine
Post by: Αndré 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
Title: Re: Creating Custom 404 Page For Coppermine
Post by: Saif 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.