1
icepick66
404-error
  • 2005/3/9 17:36

  • icepick66

  • Just popping in

  • Posts: 20

  • Since: 2004/9/25


how do i get my website to say a custom 404 error when some one tryes to acess a file that dosent exsist?
Thanks in advace

2
hobbles
Re: 404-error
  • 2005/3/9 19:28

  • hobbles

  • Just popping in

  • Posts: 24

  • Since: 2004/1/27


custom 404's are a hosting feature not related to XOOPS at all. Contact your hosting provider for info on if and how to set up a custom 404 page.

3
skenow
Re: 404-error
  • 2005/10/6 3:41

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


You can set up custom error pages with your host, but how about an error-handler within Xoops? When I was checking out PostNuke, it had such a feature.

4
Herko
Re: 404-error
  • 2005/10/6 6:25

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


when a page is requested that doesn't exist, the XOOPS script is bypassed, thus it cannot show a custom error page. Only when the request is made by the XOOPS script itself could this be done. And that is on the to-do list

Herko

5
sikey
Re: 404-error
  • 2005/10/6 8:39

  • sikey

  • Not too shy to talk

  • Posts: 151

  • Since: 2003/4/29


For example, you can point to a custom 404 page like this:

ErrorDocument 404 /errors/custom404.html

This is also needed when you want to get the stats to your google sitemaps...

6
kapsat
Re: 404-error
  • 2005/10/29 14:56

  • kapsat

  • Just popping in

  • Posts: 12

  • Since: 2005/9/26


only some 404's are handled by the server and have a 404 returned in the header. Then you can have a custom 404.

However, if the error url has something like /?page_id=8
then XOOPS handles it and it shows the content of the home page. This is a problem that i am trying to solve myself.

When XOOPS handls the a page that does not exist it will also show a 200 in the header and not a 404.

So if you are switching from a different cms to XOOPS and had urls like /?page_id=8 the search engines will see the same content on all you old urls.

So if someone has a fix for this so XOOPS can return a 404 in the header and a custom page... it would be helpful.

I also tried to do a 301 redirect with this typr of url and it also does not work.

I have tried this url on other XOOPS sites and it does the samething so it is not something that is only relivant to me.

I hope i explained myself clearly... i posted in this thread because it was sort of on topic.... if i should have started my own thread please advise and i will.


thanks for any help

dave

7
Chappy
Re: 404-error
  • 2006/4/2 9:48

  • Chappy

  • Friend of XOOPS

  • Posts: 456

  • Since: 2002/12/14


I just checked my sitemap at google and noticed the same thing. This is an issue and I would be very glad if someone had a solution that they are using. I don't want to be downgraded by google because XOOPS is reporting 200 when it should be 404.
MMM...It tastes like chicken! ...

Login

Who's Online

215 user(s) are online (140 user(s) are browsing Support Forums)


Members: 0


Guests: 215


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits