1
Matand009
Custom 404 error Pages
  • 2007/3/18 12:59

  • Matand009

  • Just popping in

  • Posts: 23

  • Since: 2006/11/26


I know what to put in the main directory(.htaccess)

I know what it needs to say, and I know what files to edit,

BUT, I want the XOOPS redirect to be on that error page and for it to say...

Quote:
404 Requested File Not Found, Redirecting to Main Page Please Wait

2
rabideau
Re: Custom 404 error Pages
  • 2007/3/18 13:01

  • rabideau

  • Home away from home

  • Posts: 1042

  • Since: 2003/4/25


You need to edit your site error pages. Normally they will be found pre-loaded by your host site and are often editable from your site control panel.

They have nothing to do with XOOPS really....
Pax vobiscum,
...mark

may the road rise to meet your feet!

http://treemagic.org

3
skenow
Re: Custom 404 error Pages
  • 2007/3/18 13:19

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


Custom error pages are part of your server configuration, but if you can create .htaccess files, you can specify your own error pages.

For example, just add -

ErrorDocument 404 /search.php

to get redirected to the search page whenever the page they requested is not found.

If you want to display the system redirect page first -

Add a new page in your XOOPS folder with

include "mainfile.php";
include "header.php";
redirect_header(XOOPS_URL."/",3,"your redirect message");

Then use your .htaccess to point at your new page. Test it and you should be good.

4
Matand009
Re: Custom 404 error Pages
  • 2007/3/18 13:23

  • Matand009

  • Just popping in

  • Posts: 23

  • Since: 2006/11/26


that's exactly what I wanted, thx Skenow

5
JMorris
Re: Custom 404 error Pages
  • 2007/3/18 14:16

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


The following article might be useful for you as well.

Customize those error pages!

HTH.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

Login

Who's Online

245 user(s) are online (175 user(s) are browsing Support Forums)


Members: 0


Guests: 245


more...

Donat-O-Meter

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

Latest GitHub Commits