Bläddra i källkod

added htaccess

Плотников Роман Вячеславович 3 år sedan
förälder
incheckning
1f8274f29d
3 ändrade filer med 13 tillägg och 0 borttagningar
  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";