if ( $request_uri ~ "^/y/v\?([a-zA-Z0-9\-_]{11})$" ) { |
rewrite .* /y/$args? permanent; |
} |
|
if ( $request_uri ~ "^/y/v\?([a-zA-Z0-9\-_]{11})[^a-zA-Z0-9\-_].*$" ) { |
rewrite .* /y/$args permanent; |
} |
if ( $request_uri ~ "^/y/([a-zA-Z0-9\-_]{11})" ) { |
rewrite ^/y/([a-zA-Z0-9\-_]+) /youtube/videoView.php?id=$1 last; |
} |