Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Configure 404 error page

(Page 2 of 2)
> >
Quote Reply
Re: [eupos] Configure 404 error page In reply to
Hi Boris,
there is one question left ;-)
Im redirecting my users to an error page. Just an glinks page.
http://www.gpaed.de/g-fehler
I just realized that this page has an 200 status code and google calls this "Soft 404"

Do you know how I can implement an real 404 code in an glinks page?
Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Configure 404 error page In reply to
Where are doing the redirect and how?

Cheers,
Boris

Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins
Quote Reply
Re: [eupos] Configure 404 error page In reply to
eupos wrote:
Where are doing the redirect and how?

I'm using this .htaccess code for all errors on my page
Code:
ErrorDocument 404 http://www.gpaed.de/g-fehler

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Configure 404 error page In reply to
Matthias70 wrote:
ErrorDocument 404 http://www.gpaed.de/g-fehler

This should be:

Code:
ErrorDocument 404 /g-fehler

By putting http://domain.name.com in front you are forcing the web server to 302 redirect and since this page actually exists it returns 200 afterwards.
The error redirects ALWAYS should be internal by pointing only the path to the error document!

Cheers,
Boris

Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins
Quote Reply
Re: [eupos] Configure 404 error page In reply to
Hi Boris,
works fine!
I learned a lot today Smile
Thanks for your help!

Matthias
gpaed.de
> >