In Joomla you will find a default Joomla 404 page. Thus often you might want to redirect those not found pages to some other page or your main site. To do so please follow the steps as below
1. Edit error.php file under templates/system/ folder of your Joomla installation.
2. Copy this code below immediately following the ### defined( '_JEXEC' ) or die( 'Restricted access' ); ## in your error.php.
## if (($this->error->code) == '404') {
## header('Location: http://www.yourdomain.com/');
## exit;
So the code looks somewhat like this (Ignore "##" signs)
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
if (($this->error->code) == '404') {
header('Location: http://www.yourdomain.com/');
exit;
}
?>
This should redirect the 404 not found error page to your main site.
| < Prev | Next > |
|---|
Categories
- Drupal ( 1 )
- Entertainment ( 0 )
- Fun and Fantasy ( 0 )
- Issues and Solution ( 1 )
- Joomla ( 7 )
- Jquery ( 1 )
- Oscommerce ( 1 )
- Photoshop ( 1 )
- PHP ( 1 )
- Research and Development ( 0 )
- Tips and Tricks ( 0 )
- Tutorial ( 0 )
- Useful Elements ( 0 )
- Web Design and Development Tips ( 2 )
Most Popular
- Drupal Blank Login node?destination=node
- Joomla Articles show a Blank Page
- Remove border around textbox in google chrome
- redirect 404 / 301 pages page not found error page in joomla
- Sort product attributes in product order page oscommerce
- Undefined variable: HTTP_POST_VARS php
- Stylish Jquery Form Tooltip
- Change Joomla Default Login Message Alerts
- How to remove Welcome to the Frontpage title
- Web Design Color Palettes






![]() | Today | 12 |
![]() | Yesterday | 94 |
![]() | This week | 193 |
![]() | Last week | 649 |
![]() | This month | 612 |
![]() | Last month | 4836 |
![]() | All days | 30225 |
Your IP: 38.107.191.96
,
Today: Sep 08, 2010








