48 Hour Sale: Save 40% on ALL products for the next 48 hours! Use the coupon: SEPT40  Sale ends in

How to Redirect 1.0 URL's to Joomla 1.5

You may have noticed that Joomlashack is now running on Joomla 1.5. We did a stealth migration yesterday.

We had one problem we needed to address, and it took a while to figure out, so we thought we would share the solution for others.

Our old site used Joomla 1.0, as I have mentioned before, we wanted to make sure we did a 301 redirect of the Joomla URL's so Google would quickly pick up the new ones and pass the pagerank to the new pages. The problem however was that our 1.0 site used the raw URL:


We rapidly discovered that mod-write unfortunately will basically ignore all the php parameters here. You can't get rewrite to pay any attention to them.

After some research and lots of trial and error we found that we could make a redirect like this:

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\?option=com_content&task=view&id=37(.*)\ HTTP/
RewriteRule ^index\.php$ http://www.joomlashack.com/get-free-joomla-templates? [R=301,L]

Its ugly, but it works!

We also found that the redirects need to be placed in the htaccess file before the main Joomla code (exploits and core sef).

Now we just have to figure out another Pagerank dilution problem.

  • www.joomlashack.com/index.php has a page rank of 6
  • www.joomlashack.com has a page rank of 9

We'll need to redirect just the index.php without breaking the rest of the core SEF function in Joomla.



Since 2005, Joomlashack has been a leading supplier of free and commercial Joomla templates, Joomla extensions, and Joomla Training.
Joomlashack.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.