1
modkid
404 error page not working,
  • 2007/2/2 13:28

  • modkid

  • Just popping in

  • Posts: 60

  • Since: 2004/3/23


I looked around the internet to see how I could make a 404 error, since a lot of people are still drawn to an old module of my site, but that's not there anymore.

Now i got the 404 file working in firefox, it redirects nicely to the frontpage.

But it doesn't work in IE, where the original server 404 shows up.

Anyone know what's up?

Thanks

2
modkid
Re: 404 error page not working,
  • 2007/2/5 0:17

  • modkid

  • Just popping in

  • Posts: 60

  • Since: 2004/3/23


Help. anyone? plzzzz?

3
ghettonet
Re: 404 error page not working,
  • 2007/2/5 0:59

  • ghettonet

  • Not too shy to talk

  • Posts: 176

  • Since: 2005/12/4


Let me see if I understand you right - you made a custom 404 error that redirects users from one place to another page, and it works in Firefox but not IE? Can you paste the redirect code and i'll see if it works for me?

4
davidl2
Re: 404 error page not working,
  • 2007/2/5 2:22

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Have you tried using the module "moved" which is designed to replace modules which have been removed?

5
modkid
Re: 404 error page not working,
  • 2007/2/5 3:20

  • modkid

  • Just popping in

  • Posts: 60

  • Since: 2004/3/23


I made a .htaccess file, that shows the following code

errorDocument 404 /404.html

I also made a 404.html file, that has the following code






Now this works great in Firefox, it redirects any user going to any broken link to the frontpage. But whenever I, let's say go to http://www.burnoutpc.com/thispagedoesnotexist

it simply gives me a standard server 404

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

--------------------------------------------------------------------------------

Please try the following:

If you typed the page address in the Address bar, make sure that it is spelled correctly.

Open the http://www.burnoutpc.com home page, and then look for links to the information you want.
Click the Back button to try another link.
Click Search to look for information on the Internet.



HTTP 404 - File not found
Internet Explorer






btw. I won't try moved, i did that, and it messed up my previous installation of XOOPS :(

6
ghettonet
Re: 404 error page not working,
  • 2007/2/5 5:47

  • ghettonet

  • Not too shy to talk

  • Posts: 176

  • Since: 2005/12/4


To do it with an .htaccess file, use this code:

Quote:
Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfile.html


(changing the directories and url of course)

To do it with html inside your error page, paste this into the metatags section (between the and tags):

Quote:
CONTENT="5; URL=html-redirect.html">


In the html code, the 'CONTENT' variable is the number of seconds to delay before redirecting.

Login

Who's Online

288 user(s) are online (246 user(s) are browsing Support Forums)


Members: 0


Guests: 288


more...

Donat-O-Meter

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

Latest GitHub Commits