Преглед изворни кода

.htaccess: Pass full URL to Pico when requesting content, lib... dirs

This allows Pico to e.g. serve content/config.md when http://example.com/pico/config/ is requested
Daniel Rudolf пре 9 година
родитељ
комит
31e55ca24a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      .htaccess

+ 1 - 1
.htaccess

@@ -5,7 +5,7 @@
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule ^(.*)$ index.php?$1 [L,QSA]
     RewriteRule ^(.*)$ index.php?$1 [L,QSA]
-    RewriteRule ^(.git|config|content|content-sample|lib|vendor)/.* index.php?404 [L]
+    RewriteRule ^(.git|config|content|content-sample|lib|vendor)/.*$ index.php?$0 [L,QSA]
 
 
     <IfModule mod_env.c>
     <IfModule mod_env.c>
         SetEnv PICO_URL_REWRITING 1
         SetEnv PICO_URL_REWRITING 1