Andrew Wallo 4 달 전
부모
커밋
9e56648708
2개의 변경된 파일27개의 추가작업 그리고 0개의 파일을 삭제
  1. 25
    0
      public/.htaccess
  2. 2
    0
      public/robots.txt

+ 25
- 0
public/.htaccess 파일 보기

@@ -0,0 +1,25 @@
1
+<IfModule mod_rewrite.c>
2
+    <IfModule mod_negotiation.c>
3
+        Options -MultiViews -Indexes
4
+    </IfModule>
5
+
6
+    RewriteEngine On
7
+
8
+    # Handle Authorization Header
9
+    RewriteCond %{HTTP:Authorization} .
10
+    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
11
+
12
+    # Handle X-XSRF-Token Header
13
+    RewriteCond %{HTTP:x-xsrf-token} .
14
+    RewriteRule .* - [E=HTTP_X_XSRF_TOKEN:%{HTTP:X-XSRF-Token}]
15
+
16
+    # Redirect Trailing Slashes If Not A Folder...
17
+    RewriteCond %{REQUEST_FILENAME} !-d
18
+    RewriteCond %{REQUEST_URI} (.+)/$
19
+    RewriteRule ^ %1 [L,R=301]
20
+
21
+    # Send Requests To Front Controller...
22
+    RewriteCond %{REQUEST_FILENAME} !-d
23
+    RewriteCond %{REQUEST_FILENAME} !-f
24
+    RewriteRule ^ index.php [L]
25
+</IfModule>

+ 2
- 0
public/robots.txt 파일 보기

@@ -0,0 +1,2 @@
1
+User-agent: *
2
+Disallow:

Loading…
취소
저장