瀏覽代碼

added htaccess

Плотников Роман Вячеславович 3 年之前
父節點
當前提交
1f8274f29d
共有 3 個文件被更改,包括 13 次插入0 次删除
  1. 4 0
      .htaccess
  2. 6 0
      public/.htaccess
  3. 3 0
      public/index.php

+ 4 - 0
.htaccess

@@ -0,0 +1,4 @@
+<IfModule mod_rewrite.c>
+    RewriteEngine on
+    RewriteRule ^(.*)$ public/$1 [L]
+</IfModule>

+ 6 - 0
public/.htaccess

@@ -0,0 +1,6 @@
+<IfModule mod_rewrite.c>
+    RewriteEngine on
+    RewriteCond ${REQUEST_FILENAME} !-d
+    RewriteCond ${REQUEST_FILENAME} !-f
+    RewriteRule ^ index.php [L]
+</IfModule>

+ 3 - 0
public/index.php

@@ -0,0 +1,3 @@
+<?php
+
+echo "Hello";