#166 ✓resolved
San

Customizing 404 Error Page through Sitellite

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

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.

Comments and changes to this ticket

  • labman

    labman October 13th, 2010 @ 09:00 AM

    • 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...

  • lux

    lux October 13th, 2010 @ 09:05 AM

    • 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

  • San

    San October 14th, 2010 @ 04:50 AM

    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.

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Sitellite web content management system.

People watching this ticket

Pages