2012-05-10, 20:59:01
Draxeiro Wrote:...
However, when I try something along the lines of:
Code:RewriteRule ^index.php?option=com_content&task=view&id=19&Itemid=35$ http://www.liftus.nl/service-onderhoud/ [R=301,L]
it will yield a 'page not found'.
Two problems:
- RewriteRules only work on the part before the query string
- Even if they worked with the query string, ? is a special character in a regular expression and must be escaped
You should try something like
Code:
RewriteCond %{QUERY_STRING} Itemid=35$
RewriteRule ^index.php$ http://www.liftus.nl/service-onderhoud/ [R=301,L]