Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • zomidaily Friend
    #192599

    Hi..

    I can’t apply this rule

    ErrorDocument 404 http://www.domain.com

    and my host suggest me to contact the template provider. How can I make all 404 error page auto redirect to homepage instead of showing 404 page?

    Question: Wouldn’t it better to redirect to homepage instead of showing error page?

    Regards,
    Joseph

    TomC Moderator
    #513753

    The correct way would to use .htaccess although you’ll need some apache knowledge to do it that way.

    The other way is to build your own custom 404 page and then put inside that page a link a user can click to take them to the home page or you can use some javascript to navigate to the home page after that page renders or you can use php’s header(‘Location: http://www.myhomepage.com‘);

    SEE ALSO –> http://docs.joomla.org/Custom_error_pages

    TomC Moderator
    #513754

    There are also several JOOMLA EXTENSIONS available for this function as well.

    zomidaily Friend
    #513776

    Hi…

    As far as I know, JoomlArt template override the Joomla default 404 Error page (even describe in the 10 bonus pages) That’s why, it doesn’t work even if I place the code “ErrorDocument 404 http://www.domain.com” into .htaccess. I think no need to use extension too.

    My question is how to change the JoomlArt 404 Error page back into the Joomla default? That should solve the problem.

    Cheers!

    Saguaros Moderator
    #513895

    Hi,

    You can simply remove the error.php in templates/<template-name> directory – this is overridden file for template. Then Joomla! will use the error system file.

    Regards

    zomidaily Friend
    #514021

    Hi @saguaros,

    I remove the error.php file, and apply the ErrorDocument 404 http://www.domain.com” into .htaccess. But now, I see the default Joomla error page instead of redirecting to homepage:

    http://awesomescreenshot.com/0c62165tba

    Any tips?

    Regards,
    Joseph

    Saguaros Moderator
    #514298

    Hi Joseph,

    Pls try to set a 404 error page again with this tip: http://www.inmotionhosting.com/support/website/how-to/setting-a-404-error-page-via-htaccess or use an extension like Tom suggested above

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 3 voices, and was last updated by  Saguaros 10 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum