The URL structure for Joomla 1.5 changed in version 2.5.

Before it was:


Now it's:


*Note the id and itemid numbers change based on page and while all pages have an id not all have the Itemid in the url.

While we updated all links in the database lots of people still have the old link structure so we want to edit the htaccess file so if someone enters the old structure it will forward to the right structure.

Simply put any URL entered at example.com with task=view in the url should be replaced with view=article.

Does anyone know a simply way to do this in htaccess?

  • Does the example case you've given cover the structure of the request for all of the redirecting you're looking to do? – Shane Madden Jun 13 '12 at 1:13
  • Actually just found the solution: codejoomla.com/joomla-user-guide/… unless someone knows a better way. – cchiera Jun 13 '12 at 1:18
  • 1
    That should do the trick! Post it as an answer when the system lets you and mark it as accepted, so the next person who runs into this will find it! – Shane Madden Jun 13 '12 at 1:22

The answer can be found here: http://www.codejoomla.com/joomla-user-guide/old-urls-dont-work-after-upgrading-10-to-17.html

update `jos_content` set `introtext` = replace(introtext,'task=view','view=article');

update `jos_content` set `introtext` = replace(introtext,'task=category','view=category');

update `jos_content` set `introtext` = replace(introtext,'task=blogcategory','view=category&layout=blog');

update `jos_content` set `introtext` = replace(introtext,'option=com_wrapper&Itemid=','option=com_wrapper&view=wrapper&Itemid=');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.