Hey, I was wondering if it is possible to make a 404 error page for Elgg.
Because I use Hostgator to host my site and usually if I put in "mysite/404" it doesn't use a Elgg like 404 it uses Hostgator's 404 page.
So how would I make one and make it so if someone does try to go to a page that doesn't exist, it would redirect to the 404 page.
(I'm using 1.8.1)
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.
I didn't, I was leaving it for you as original reporter. I was just agreeing that it's an issue. You could hook into to the 'forward', '404' hook and serve up a real 404 page in the meantime.
Ok Matt I will submit it to trac.
for second question it is currently displaying a correct page but not correct error code. So how to generate a 404 error code instead of 200 code?
you have to send the code with the php header() function
http://php.net/manual/en/function.header.php
Thanks Matt for your suggestions and I fixed this error code by adding below code to 404.php file.
u mean like -- pg/photos/owned/username - giving wsod ? is this a user url entry ? shud normally goto (elgg) 400, do u have sample url to yr site to observe ?
Hi Dhrup,
Here is url which is producing white page.
http://www.royalloops.com/photos/owned/noor
Now here is working url
http://www.royalloops.com/photos/owner/noor
I am using Bret's tidypics plugin for 1.8.5
- Previous
- 1
- 2
- Next
You must log in to post replies.