ソースを参照

Update .htaccess

Sync with Pico 1.0.3; see ee5b4f0
Daniel Rudolf 9 年 前
コミット
0f8deda6a3
1 ファイル変更3 行追加2 行削除
  1. 3 2
      .htaccess

+ 3 - 2
.htaccess

@@ -3,8 +3,9 @@
     # May be required to access sub-directories
     #RewriteBase /
 
-    # Deny access to internal dirs by passing the URL to Pico
-    RewriteRule ^(.git|config|content|content-sample|lib|vendor)(/|$) index.php [L]
+    # 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]
 
     # Enable URL rewriting
     RewriteCond %{REQUEST_FILENAME} !-f