-
AuthorPosts
-
earthson Friend
earthson
- Join date:
- May 2008
- Posts:
- 162
- Downloads:
- 0
- Uploads:
- 21
- Thanks:
- 17
- Thanked:
- 7 times in 1 posts
December 27, 2013 at 4:46 pm #193291I have setup a custom 404 page, but it doesn’t return a proper 404 error when I check it here: http://httpstatus.io/. It shows up as 200 (ok).
I’ve been told that I need it to show up as a proper 404 error, and to do so, I need to add some code to my error.php page. Is that correct?
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
earthson Friendearthson
- Join date:
- May 2008
- Posts:
- 162
- Downloads:
- 0
- Uploads:
- 21
- Thanks:
- 17
- Thanked:
- 7 times in 1 posts
December 28, 2013 at 5:42 pm #516751Hello Pavit,
The page says it is for templates released before March 2012 – For Joomla 2.5.
​So, will it still work for Ja-Brisk for Joomla 3.0?
earthson Friendearthson
- Join date:
- May 2008
- Posts:
- 162
- Downloads:
- 0
- Uploads:
- 21
- Thanks:
- 17
- Thanked:
- 7 times in 1 posts
December 28, 2013 at 6:00 pm #516752Actually, I already have both error.php and error.css in my JaBrisk template. So, what good would it do to replace them with the ones from JaPuresite? I’m baffled by this.
It still seems like I won’t get a proper 404 error from this fix…it just looks like a way to customize the 404 error page.
Am I wrong?
Thanks 🙂
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
December 28, 2013 at 6:04 pm #516753You dont need to replace the 2 files
you need to check the code inside it if you want to customize some of the featuresI know that is for an old template but i posted it to give you a point of start
earthson Friendearthson
- Join date:
- May 2008
- Posts:
- 162
- Downloads:
- 0
- Uploads:
- 21
- Thanks:
- 17
- Thanked:
- 7 times in 1 posts
December 28, 2013 at 6:18 pm #516754Sorry, I don’t know enough…so I take everything literally 😉
Anyway, I understand that I can edit the error.php and error.css pages. However, I don’t understand how I’m supposed to get a proper 404 http error. Like I said before, the error page just shows a 200
earthson Friendearthson
- Join date:
- May 2008
- Posts:
- 162
- Downloads:
- 0
- Uploads:
- 21
- Thanks:
- 17
- Thanked:
- 7 times in 1 posts
December 28, 2013 at 6:22 pm #516755Sorry – it is fixed. I had edited the error.php before so I could redirect to a new 404 page. When I replaced it with an original, the standard 404 page (That comes with the template) gives the correct error. I will follow the instructions above to edit that error page now.
Thanks for all your help, and patience 🙂
earthson Friendearthson
- Join date:
- May 2008
- Posts:
- 162
- Downloads:
- 0
- Uploads:
- 21
- Thanks:
- 17
- Thanked:
- 7 times in 1 posts
December 28, 2013 at 11:45 pm #516771One more quick question. On the 404 page, there is a link to my Home Page. When I click it, I am redirected to myhomepage but there are two forward slashes // after the url. ie. mysite.com//
Any idea why? And how to remove it?
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
December 29, 2013 at 6:58 am #516780Hi
I think you need to check your error.php file settings for baseurl and verify how it rebuild the home adding maybe a new character
<div id="errorboxbody">
<?php echo JText::_('JERROR_LAYOUT_PLEASE_TRY_ONE_OF_THE_FOLLOWING_PAGES'); ?> <a href="<?php echo $this->baseurl; ?>/index.php" title="<?php echo JText::_('JERROR_LAYOUT_GO_TO_THE_HOME_PAGE'); ?>"><?php echo JText::_('JERROR_LAYOUT_HOME_PAGE'); ?></a>earthson Friendearthson
- Join date:
- May 2008
- Posts:
- 162
- Downloads:
- 0
- Uploads:
- 21
- Thanks:
- 17
- Thanked:
- 7 times in 1 posts
December 29, 2013 at 9:33 pm #516800This is what mine shows:
<div id="errorboxbody">
<?php echo JText::_('JERROR_LAYOUT_PLEASE_TRY_ONE_OF_THE_FOLLOWING_PAGES'); ?> <a href="<?php echo $this->baseurl; ?>/index.php" title="<?php echo JText::_('JERROR_LAYOUT_GO_TO_THE_HOME_PAGE'); ?>"><?php echo JText::_('JERROR_LAYOUT_HOME_PAGE'); ?></a></div>
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
December 31, 2013 at 8:42 am #516998Hi
you need to check the /index.php n that file
anyway if you still receiving same error send me via Private Message an ftp account to your Joomla folder i will try to verify all files .htaccess included
AuthorPostsViewing 11 posts - 1 through 11 (of 11 total)This topic contains 11 replies, has 2 voices, and was last updated by pavit 10 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
404 page – get a proper 404 Http return?
Viewing 11 posts - 1 through 11 (of 11 total)