# allow indexing with +, disallow with -Options +Indexes
# fancy indexingIndexOptions FancyIndexing
# change the default entry point (default is index.php)DirectoryIndex main.php
# ignore/exclude/hide file extensionsIndexIgnore *.txt *.ico
# define custom extension for php parsingAddTypeapplication/x-httpd-php .xp
# restricting access to a certain file
<files python.conf>
order allow,deny
deny from all
</files>
# block access of multiple files
<FilesMatch"\.(ps|ts|pem)">
order allow,deny
deny from all
</FilesMatch>
# directive to enable rewriteRewriteEngineOn# set conditions for the rules that follow## if the request URL matches a directory dont apply any rulesRewriteCond%{REQUEST_FILENAME}!-d## if the request URL matches a file dont apply any rulesRewriteCond%{REQUEST_FILENAME}!-f## if the request URL matches a symlink dont apply any rulesRewriteCond%{REQUEST_FILENAME}!-l# rules## RewriteRule pattern substitution modificators/flagsRewriteRule^(.*)$index.php?path=$1 [QSA,L]
# R - redirect# R=301 - redirect permanent# QSA - append the query string to the final URL# L - last rule/redirect in the list# F - disable access to files