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 00000000..54183254 Binary files /dev/null and b/favicon.ico differ 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