Hi There,
We have a website that has pages which dont exist any more and i'm trying to redirect the old link to the homepage. This works for most rules but once I include a ? in the link it doesnt work.
Heres and example of a working one I have:
Code:
RewriteRule ^email-marketing\.php$ http://www.example.co.uk/ [R=301,L]
Now as soon I do something like this:
Code:
RewriteRule ^index\.php\?page=contact$ http://www.example.co.uk/
it doesnt pick it up / work. I cannot find anything helpful in the log either
Ive also tried this that doesnt work:
Code:
RewriteCond ${QUERY_STRING} =^index.php?page=contact$
RewriteRule ^index\.php\?page=contact$ http://www.example.co.uk/
this does also not work.
Im sure i'm missing something simple here. Any help / advice would be greatly appreciated