浏览代码

Add .htaccess

Gabriel Badano 4 年之前
父节点
当前提交
ea4884256e
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      .htaccess

+ 11 - 0
.htaccess

@@ -0,0 +1,11 @@
+RewriteEngine on
+
+#RewriteCond %{HTTPS} !^on$
+#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
+
+# if a directory or a file exists, use it directly
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+
+# otherwise forward it to index.php
+RewriteRule . index.php