Try:
RewriteEngine On
RewriteCond %{QUERY_STRING} ^old-page$
RewriteRule ^$ /index.php?option=com_content&view=article&id=78&Itemid=999 [R=301,L]
Pergunta
Our old site had all its urls starting with "/?" . I have now created a Joomla 3 site, and registered all the old urls with a 301 to the new in our htaccess. However, the 301 Redirects are not working....
e.g. Redirect 301 /?old-page /index.php?option=com_content&view=article&id=78&Itemid=999
Instead, all my redirects go to our Home page.
Any suggestions?
thanks Geoff
Solução
Try:
RewriteEngine On
RewriteCond %{QUERY_STRING} ^old-page$
RewriteRule ^$ /index.php?option=com_content&view=article&id=78&Itemid=999 [R=301,L]