Custom 404 page

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Custom 404 page

Harvey
Anyway to get a custom 404 pages for errors?
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Custom 404 page

Pedro
You could do it outside Nabble. Do you have a file called .htaccess on your server?
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Custom 404 page

Harvey
Pedro <Nabble> wrote
You could do it outside Nabble. Do you have a file called .htaccess on your server?
I don't know what this means.

Could I redirect nabble 404 pages to my main blog 404 page?
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Custom 404 page

Pedro
Edit you get_node_from_parameter macro like this:
<override_macro name="get_node_from_parameter" dot_parameter="do" requires="servlet">
    <n.catch_exception. id="get-node-block">
        <n.get_node_from_request_parameter.do/>
    </n.catch_exception.><n.handle_exception. for="get-node-block">
        <n.exception. name="node_not_found">
            <n.redirect_to url='Your Address' />            
        </n.exception.>
    </n.handle_exception.>
</override_macro>
Replace "Your Address" with your main blog 404 page. Use "http://" at the beginning.
My test forum.