OOPS. Your Flash player is missing or outdated.Click here to update your player so you can see this content.
  • Narrow screen resolution
  • Wide screen resolution
  • Wide screen resolution
  • Increase font size
  • Decrease font size
  • Default font size


Upgrading to Joomla 1.5 - Handling 404 errors with PhocaSEF PDF Print E-mail
Written by Administrator   
Friday, 19 June 2009 12:27

One of the problems when you upgrade to Joomla 1.5 is that your old urls will be giving 404 errors which is bad, not only because you are losing visitors but also for your site SEO - Google, Yahoo and those other search engines don't like 404 errors when ranking your web site.

I've come across a great component to handle this once it is set up but the set up can be a bit tricky.

 

To redirect your visitors to your new pages is fairly simple, just replace the error.php in your templates/system folder with a redirect page. The problem though is that you want a 301 redirect (permanent move) and not a 404 redirect (page not found) and 301 redirects have to be done per page.

 

With PhocSEF you replace your old pages with a redirect to your new pages as visitors try the old pages. Depending on the size of your site you can redirect to the replacement new pages or you can redirect to a specific page, e.g. a notification of the change or your home page. 

Installation of PhocaSEF:

The first part is a normal component installation, however:

  • You need to add a bit of code to your error.php page in the libraries/joomla/error/error.php page (not the same one as previously mentioned)
    Add:

//PHOCAEDIT
if ($code = '404') {
include_once( JPATH_ADMINISTRATOR.DS.'components'.DS.'com_phocasef'.DS.'helpers'.DS.'phocasef.php' );
PhocaSefHelper::createUrlEntry();
}
//PHOCAEDIT


before

$reference = & JError::raise(E_ERROR, $code, $msg, $info, true);

in about line 171.

  • And it doesn't automatically update your database. So you have to do a sql dump of the contents of install.bak.The install.bak file is in the folder administrator/components/com_phocasef. Remember to change the #__ to jos_ (or your database prefix) in the sql dump file

Once this is done you can go to the component and manually add your pages or you can wait for the 404s to be listed automatically and then edit and or publish them. Over time your should pick up all your 404 errors

Download PhocaSEF

 

 

Comments
Search
Only registered users can write comments!

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

 

Resources

Keywords

Statistics

Members : 1343
Content : 133
Web Links : 6
Content View Hits : 1289919

Who's Online

We have 8 guests online

Like it? Share it!

Add to: JBookmarks Add to: Facebook Add to: Mr. Wong Add to: Buzka Add to: Windows Live Add to: Digg Add to: Del.icoi.us Add to: Reddit Add to: Jumptags Add to: Upchuckr Add to: StumbleUpon Add to: Slashdot Add to: Netscape Add to: Furl Add to: Yahoo Add to: Blogmarks Add to: Diigo Add to: Technorati Add to: Newsvine Add to: Blinkbits Add to: Ma.Gnolia Add to: Spurl Add to: Google Add to: Blinklist

Resources

Syndication

Translate This Site

French German Italian Portuguese Russian Spanish

Login/Register



Template Chooser

ol_trolmi

Joomla 1.5 Directory

Add Entry
Search