From aace56e7dc437d386430080b26e37ca343a89cb2 Mon Sep 17 00:00:00 2001 From: sugar1569 Date: Mon, 5 Nov 2018 10:13:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=AA=E9=9D=99=E6=80=81=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .htaccess | 8 ++++++++ favicon.ico | Bin 0 -> 4286 bytes nginx.conf | 5 +++++ public/.htaccess | 14 ++++++-------- web.config | 13 +++++++++++++ 5 files changed, 32 insertions(+), 8 deletions(-) create mode 100644 .htaccess create mode 100644 favicon.ico create mode 100644 nginx.conf create mode 100644 web.config diff --git a/.htaccess b/.htaccess new file mode 100644 index 00000000..dd7fb824 --- /dev/null +++ b/.htaccess @@ -0,0 +1,8 @@ + +Options +FollowSymlinks -Multiviews +RewriteEngine on + +RewriteCond %{REQUEST_FILENAME} !-d +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] + \ No newline at end of file diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..54183254468ec87208af17f09ce324dad8ccc885 GIT binary patch literal 4286 zcmeI0OGuPa6vyv0Q)7-c<0EyPvN1Izh!#aeFM2^iQAAnvFsW!=gb)-#P|%_xLVD7s z=pF5fs9g85cC~P))GkX%%ND}v{%+o{Z|>)eV@Pd0a{SJm^FROpxz}&*$EQ*u{gX~B zeyh6)r7DzCjoNieE!R%oT4_uv+;5fDGupKGXz%?;j#e8p=<7Z0f>))|lA1nK^u*d# zhL@BlB{id7dxNM@G^1v)I!6r*ShpWexY4kBerw8?gZ-Oa_Pf4u0Ov26B!{hF4pANqbNxp?Vnpia)7KVV&hGaN0> zlFkoGSGaQZO)UQa^m^GX}6YPiYb5D=_ z82IT@d!MO+8P4Ejf6&Nw{_$)oEJ{dOMN)dcd>xMFuX1p~3Agk7v(I~PrlfiPDp|N_ z$*}u8+5z~xz{T3(_N|>bpwE2OLo>un%H_n#Q_|VlnIStkI4JGy?XqtD2IIu!{6-JG zaG(vRv-V;2?R?cWbrLO%o8Hp$N?Eabtu(jnla@XEW!{2CCU5U|uH>kJ0ZR{gIN-9p z&NZ-pf8EYo6rZZOA{mickJ4WV#U@as2j%J=?$ zZ@Y=f*?Nxky8DoqesWr^6vs;?GO0iwJ$~Zpx&bvXVCnJCpC!&qze4XL`+NDyHCHn5 z84Or@vS|AAdFdC#;!<1JDExkV8GHdR{E@G+xBKFVXj-Y?(pt8 zV!wfQ zCKbwrNP!$VdQ7^yx@BNsz&J5EYG6ij{-Ei-e~vT@yu}I5VkIdZ&zU>lI59bDqt(`Z qyaVU|{+&wq>b>nPh$VVM6AO(KldHu4JX3SU-uw4){yp%Y4DDYUxm?Qt literal 0 HcmV?d00001 diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 00000000..b8c52753 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,5 @@ +location / { + if (!-e $request_filename){ + rewrite ^(.*)$ /index.php?s=$1 last; break; + } +} \ No newline at end of file diff --git a/public/.htaccess b/public/.htaccess index 883441b5..dd7fb824 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,10 +1,8 @@ -RewriteEngine -on + +Options +FollowSymlinks -Multiviews +RewriteEngine on -#不显示index.php - -RewriteCond %{REQUEST_FILENAME} -!-d +RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f -RewriteRule ^(.*)$ index.php/$1 -[QSA,PT,L] \ No newline at end of file +RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] + \ No newline at end of file diff --git a/web.config b/web.config new file mode 100644 index 00000000..80a7d904 --- /dev/null +++ b/web.config @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file