Forum Moderators: phranque
The problem is I have just updated versions and need to preserve some URLs but Joomla is not allowing any standard 301 redirects to work.
This does not work for some reason:
RewriteRule ^index.php?Itemid=16&id=42&option=com_content&task=view(.*)$ http://www.domain.com/tutorials [L,R=301]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\?option=com_content&task=view&id=226\ HTTP/
RewriteRule ^index\.php$ http://www.example.com/tutorials/226-joomla-15-template-tutorial/ [R=301,L]
http://www.example.com/tutorials/226-joomla-15-template-tutorial/?option=com_content&task=view&id=226
[edited by: jdMorgan at 9:04 pm (utc) on Jan. 14, 2009]
[edit reason] Pleas use example.com only [/edit]
When you want to erase an existing query string, end the substitution string with just a question mark.