Please, explain for total beginner this .htaccess file
snippet in htaccess

Please, explain for total beginner this .htaccess file

user7241

# Enable RewriteEngine to rewrite URL patterns
RewriteEngine On

# Every URI that not (! operator) ends with one of .php, .css, .js, .gif, .png, .jpg, .jpeg or .pdf
RewriteCond %{REQUEST_URI} !\.(php|css|js|gif|png|jpe?g|pdf)$

# Will be redirected to templates/index.php
RewriteRule (.*)$ templates/index.php [L]

# Sample
# /foo/bar.php -> /foo/bar.php
# /foo/bar.html -> templates/index.php