YellowWebMonkey Web Design

crawl-errors.jpg

Redirect Joomla 1.0 SEF links for Joomla 3.x

crawl errorsWhen you migrate a site from Joomla 1.0 or Joomla 1.5 you may have hundreds of pages indexed with Google that will be broken links, showing a 404 Page Not Found error.  For SEO, you want to redirect those pages since of having Google remove from the index with your robots.txt.  Here is a redirect to catch all of them.

First, make sure you have a .htaccess file in the folder that your Joomla site is in.  You may have to rename the default htaccess.txt to .htaccess.  Make sure your site still works with it there.  There are several tweaks in it that you may need to do before the redirects.  For how, to do that, there are many other blog posts on the web.

In your .htaccess, first make sure you have rewrite enabled at the top:

RewriteBase /

Below that, add this code to redirect the old SEF to the corresponding page on the new site:

RewriteRule ^content/view/(.*)$ /index.php?option=com_content&view=article&id=$1 [L,R=301]

 

That will redirect 

http://www.mysite.com/content/view/1234/2/

to

http://www.mysite.com/index.php?option=com_content&view=article&id=1234/2
Scroll to Top