Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Customizing 404 Error Page through Sitellite

#166

Hi

If using Sitellite CMS I want to customize the 404 Page not found error and want to show my customized page when user gets this error, how would I achieve it?

I understand, using .htaccess I can do it but apart from .htaccess if I want to use power of sitellite how would it be done? Please explain in a bit depth as I am a newbie here.

Thanks and appreciate your efforts.

Reported by San · October 13th, 2010 @ 12:55 AM

State: resolved
Milestone: none
Assigned to: lux lux

Activity

  1. labman
    labman
    • Assigned user cleared.

    This isn't a bug or feature request and really doesn't belong here. You should use the Google group (http://groups.google.com/group/sitellite) to post questions.

    To answer your question however, see http://cookbook.sitellite.org/index/sitewiki-app/show.CustomErrorHa...

    October 13th, 2010 @ 09:00 AM

  2. lux
    lux
    • State changed from new to resolved
    • Assigned user set to lux

    You can create a box (see Sitellite's docs on creating custom boxes, they're just PHP scripts in the inc/app/{appname}/boxes folders), and set it as the error handler under Control Panel > Admin > Site Settings in the GUI. That's really all there is to it. You can see the existing one in inc/app/sitellite/boxes/error/index.php but really they can be as simple as this:

    <?php
    
    header ('HTTP/1.1 404 Not found');
    page_title ('Page not found');
    echo '<p>The page you requested could not be found.</p>';
    
    ?>
    

    For future questions though, please post them to the Google Group, since this is reserved for bug/issue tracking. Thanks :)

    http://groups.google.com/group/sitellite

    October 13th, 2010 @ 09:05 AM

  3. San
    San

    Dear labman and lux

    I am Sorry I just missed it and posted my question here. And dude, I must thank both you guys for the response despite of irrelevant entry in this forum. I really appreciate the satisfactory response as well as the efforts by you guys.

    Thanks a bunch again.

    October 14th, 2010 @ 04:50 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.