IMPORTANT! The ECML (Elgg Custom Markup Language) plugin (version 0.2.2.b or higher) is required for the 404 page to render correctly. However you can remove the ECML tags and add your own code if you want.
This plugin adds custom 404 error pages. It also provides a php function that can be used to throw 404 error pages. elgg_throw_404. There are specific changes to the .htaccess file that are required for this plugin to work.
You must modify the .htaccess file for this plugin to work.
- Add the following [L,QSA], after every RewriteRule line in the .htaccess so a sample line will now look like
RewriteRule ^action\/([A-Za-z\_\-\/]+)$ engine/handlers/action_handler.php?action=$1 [L,QSA]
- Add the htaccess additions found in the htaccess_additions file to the end of the .htaccess file just above the last </IfModule> line.
View Oliver Lillie's plugins
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
Cool - is there a sample of the 404 page ? Like what the page looks like ?
Thanks.
The page is wrapper in the default two column layout view, with the sidemenu on the left and the following where the main content would be (the language can be changed via language file)
Page missing...
The page requested cannot be found!
Return to the frontpage.
Hey, this works great. Thank you.
I was wondering if you had any documentation on how to use the custom function,
elgg_throw_404
Thanks again.
where can i find the ecml markup plugin? it seems to have been removed..
or is it included in the core of later versions of elgg? (I'm running 1.7.4).
I installed this plugin and edited the htaccess file but am not seeing any 404 pages.
thanks