There are tens of thousands of examples of rewrites and redirects in this forum.
A redirect looks like
RewriteRule ^old-path http://www.example.com/new-path [R=301,L]
A rewrite looks like
RewriteRule ^path-in-URL /path-inside-server [L]
but may be further complicated if either or both the URL used on the web or the server path inside the server use parameters.