This sounds very simple and easy to do, but for some reason I just can't find a solution.
What I would normally do is:
Redirect 301 /mydir/mydir2/page.php /mydir/newpage.php
But I can't do this because the old page is used in code elsewhere that does not follow redirects.
So I need to use rewriterules?, but don't know how to do this.
It's needs to be able to do this:
/mydir/mydir2/page.php?Task=dosomething¶mx=moreparams
to
/mydir/newpage.php?Task=dosomething¶mx=moreparams
anyone an idea on how to do this?