-
AuthorPosts
-
July 14, 2011 at 10:08 am #166282
First of all, congratulations for this great forum!!!
I’ve a problem. I’m using a personalized 404 page. When a user found a page that doesn’t exist, the page work correctly but i’ve a series of strange messages at the top and at the bottom of the page…you can check these messages directly clicking here http://www.focusvoltaico.com/en/contacts.html . Please, give me some help! Thank you.chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
July 15, 2011 at 11:47 am #401313Hi ciccio83
You should add & ~ E_NOTICE in error_reporting in php.ini. You can read more in http://php.net/error-reporting
n6rej Friendn6rej
- Join date:
- November 2006
- Posts:
- 1040
- Downloads:
- 0
- Uploads:
- 63
- Thanks:
- 79
- Thanked:
- 145 times in 90 posts
September 10, 2011 at 7:36 pm #411921no your host would. Might turn off .htaccess and then in configuration.php turn off SEF and url rewrite. see how that works.
October 7, 2011 at 9:47 am #417477Actually you loose your site viewers to the dreaded 404 error pages, to correct it just redirect them to you home page. Below i will show how can you do it i.e., if someone enter wrong address of your site they will be sent to your homepage instead of 404 page..
Follow below steps:-
1) Copy the file templates/system/error.php to your default template location templates/<template-name>/error.php using either your hosts file manager or with a FTP client such as FileZilla.2) Open error.php for edit
Change this original code near the top of the file
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
?>To this (add the stuff in red). Don’t forget to change <your-url> to your web site name!
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
if (($this->error->code) == '404') {
echo file_get_contents('http://www.<your-url>.com');
} else {
?>Finally at the very bottom of the file add the following
<?php } ?>
You are done.
n6rej Friendn6rej
- Join date:
- November 2006
- Posts:
- 1040
- Downloads:
- 0
- Uploads:
- 63
- Thanks:
- 79
- Thanked:
- 145 times in 90 posts
October 7, 2011 at 6:11 pm #417592for 1.5 use http://extensions.joomla.org/extensions/site-management/url-redirection/14676 for 1.6+ redirect is already included.
http://docs.joomla.org/Creating_a_Custom_404_Error_Page will tell you how to create the custom error page.My initial response was an assumption that the error was happening improperly perhaps to sef issues.
-
AuthorPosts
This topic contains 6 replies, has 5 voices, and was last updated by n6rej 13 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum