PDA

View Full Version : Custom 404


RAitch
09-02-2006, 06:17 PM
I've been trying to figure out how to do a custom 404 screen when people try to access pages that don't exist.

It seems it's not as simple as modifying the missing.html.

I would like to add a custom page that looks like the rest of my template. Is it possible to use the same *template.html coding in a 404 page?

Any help/guidance would be appreciated!!

Thanks.
Rich

Connie
09-02-2006, 06:25 PM
Rich,

a 404-page is defined in the server customization and it is definitevely not processed by pixelpost.

You can always save a webpage from within the browser, edit this a little bit, add some information that it is a 404-page with some links to your content and upload this again and define this page as your missing.htm or whatever the name for that default page is.

RAitch
09-02-2006, 08:36 PM
I found that out after I posted it. DOH!
What's being processed when you do an <index.php?x=blah> (assuming blah_template.html doesn't exist)?

Connie
09-02-2006, 10:17 PM
nothing, because we stopped all undefined parameters when calling index.php

if you want that such a page will be processed by index.php, you need an addon for that

Vernon.Trent
09-02-2006, 10:54 PM
you can create a custom page with the miniCMS and then call it by entries in .htaccess or redirect them to another domain (google, etc.)

something like that
------------
RewriteEngine on
RewriteCond %{REQUEST_URI} !-U
RewriteRule ^(.+) http://redirect.dom/$1