w - matches any word/character .
d - matches any digit (0-5).
$1 - variable, a pattern matched inside RewriteRule. (%1 Refers to a pattern matched in a RewriteCond condition)
[L] - last, stops processing rules.
Read this - https://httpd.apache.org/docs/2.2/rewrite/intro.html