-
AuthorPosts
-
zomidaily Friend
zomidaily
- Join date:
- March 2013
- Posts:
- 132
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 7
- Thanked:
- 9 times in 1 posts
November 27, 2013 at 7:27 pm #192599Hi..
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,
JosephTomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
November 27, 2013 at 7:38 pm #513753The 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 ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
November 27, 2013 at 7:40 pm #513754There are also several JOOMLA EXTENSIONS available for this function as well.
zomidaily Friendzomidaily
- Join date:
- March 2013
- Posts:
- 132
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 7
- Thanked:
- 9 times in 1 posts
November 28, 2013 at 3:25 am #513776Hi…
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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 29, 2013 at 4:05 am #513895Hi,
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 Friendzomidaily
- Join date:
- March 2013
- Posts:
- 132
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 7
- Thanked:
- 9 times in 1 posts
December 1, 2013 at 4:47 pm #514021Hi @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,
JosephSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 4, 2013 at 9:58 am #514298Hi 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
-
AuthorPosts
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