I will try to give a brief explanation that I hope will clear this for you.
First: If you have never used regular expressions, go to the search.
A RewriteRule - three different parts. Firstly, it is an expression used to search for a query string for a specific template. The second destination line, which is actually served from the server. Thirdly, these are options that are included in parentheses.
, , . , , .
, ( http://www.example.com/), :
http://www.example.com, ( - , .htaccess).
http://www.example.com/page2.html, app/webroot/page2.html. , 404.
RewriteRules [L] . , Apache, . , Apache , . , , .