瀏覽代碼

add comments and RewriteBase directive

theshka 10 年之前
父節點
當前提交
b11a358505
共有 1 個文件被更改,包括 8 次插入6 次删除
  1. 8 6
      .htaccess

+ 8 - 6
.htaccess

@@ -1,9 +1,11 @@
-<IfModule mod_rewrite.c>
-RewriteEngine On
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteCond %{REQUEST_FILENAME} !-d 
-RewriteRule . index.php [L]
+<IfModule mod_rewrite.c>                    # Check for mod_rewite module.
+    RewriteEngine On                        # Turn mod_rewrite module on
+    #RewriteBase /                          # May be required to access sub-directories
+    RewriteCond %{REQUEST_FILENAME} !-f     # Any request that is not a file,
+    RewriteCond %{REQUEST_FILENAME} !-d     # Any request that is not a directory,
+    RewriteRule . index.php [L]             # Reroute the request to index.php
 </IfModule>
 </IfModule>
 
 
+
 # Prevent file browsing
 # Prevent file browsing
-Options -Indexes
+Options -Indexes