Browse Source

Add a few 404s to .htaccess

Andrea Franceschini 4 years ago
parent
commit
8fd03bbcf4
1 changed files with 13 additions and 1 deletions
  1. 13 1
      .htaccess

+ 13 - 1
.htaccess

@@ -3,4 +3,16 @@ RewriteRule "(^|/)\.(?!well-known\/)" 404 [L]
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_URI} !=/favicon.ico
-RewriteRule ^(.*)$ index.php [L,QSA]
+RewriteRule ^(.*)$ index.php [L,QSA]
+
+RewriteRule "^.htaccess" 404 [L]
+RewriteRule "^config.rb" 404 [L]
+RewriteRule "^.git(/|ignore)?" 404 [L]
+RewriteRule "^package(-lock)?.json" 404 [L]
+RewriteRule "^postcss.config.js" 404 [L]
+RewriteRule "^tailwind.config.js" 404 [L]
+RewriteRule "^oldcss" 404 [L]
+RewriteRule "^node_modules" 404 [L]
+RewriteRule "^libs" 404 [L]
+RewriteRule "^pcss" 404 [L]
+RewriteRule "^.DS_Store" 404 [L]