浏览代码

Update .htaccess

Daniel Rudolf 8 年之前
父节点
当前提交
91771e67af
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      .htaccess

+ 2 - 2
.htaccess

@@ -4,8 +4,8 @@
     #RewriteBase /
     #RewriteBase /
 
 
     # Deny access to internal dirs and files by passing the URL to Pico
     # Deny access to internal dirs and files by passing the URL to Pico
-    RewriteRule ^(\.git|config|content|content-sample|lib|vendor)(/|$) index.php [L]
-    RewriteRule ^(CHANGELOG\.md|composer\.(json|lock)) index.php [L]
+    RewriteRule ^(\.git|_build|config|content|content-sample|lib|vendor)(/|$) index.php [L]
+    RewriteRule ^(\.git(attributes|ignore)|CHANGELOG\.md|composer\.(json|lock))$ index.php [L]
 
 
     # Enable URL rewriting
     # Enable URL rewriting
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-f