Skip to content

Commit

Permalink
Create .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
accgit authored Feb 25, 2021
1 parent d866bb9 commit c056f80
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# disable directory listing
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>

# disable listing configuration files
<Files ~ '\.(neon|latte|log|html)$'>
order allow,deny
deny from all
</Files>

# redirection of requests to www
<IfModule mod_rewrite.c>
RewriteEngine On

RewriteRule ^$ www/ [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/www/
RewriteRule ^(.*)$ www/$1
</IfModule>

0 comments on commit c056f80

Please sign in to comment.