URL Custom Rewrite

You can do something like

$path = $_SERVER['REQUEST_URI'];

if (home_url($path) == 'http://www.myweb.com/action/frame' ) {

    header('Location: ' . 'http://www.myweb.com/wp-content/plugins/myplugin/frame.php');

}