This thread works as expected.
I have a question if it's possible to remove
The following also works, but now every page is going to mypage.
add_rewrite_rule( '^([^/]+)/?', 'index.php?pagename=mypage&mycustomvar=$matches', 'top' );
What I want to achieve is(don't know if is possible due to WP index.php rule), that if I have a URL like
mysite.host/mypage/?mycustomvar=test+by+wp&mycustomvar2=logs rewrite to
User sees this in the browser,
Any pointer in the right direction is appreciated.