test
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • earthson Friend
    #193291

    I 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 Moderator
    #516696

    Hi

    Try to take a look HERE you can manage it in the same way

    earthson Friend
    #516751

    Hello 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 Friend
    #516752

    Actually, 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 Moderator
    #516753

    You dont need to replace the 2 files
    you need to check the code inside it if you want to customize some of the features

    I know that is for an old template but i posted it to give you a point of start

    earthson Friend
    #516754

    Sorry, 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


    1. screenshot-404
    earthson Friend
    #516755

    Sorry – 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 Friend
    #516771

    One 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 Moderator
    #516780

    Hi

    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 Friend
    #516800

    This 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 Moderator
    #516998

    Hi

    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

Viewing 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