After some research, some help 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 ulgy, 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.