sugar1569 7 лет назад
Родитель
Сommit
aace56e7dc
5 измененных файлов с 32 добавлено и 8 удалено
  1. 8 0
      .htaccess
  2. BIN
      favicon.ico
  3. 5 0
      nginx.conf
  4. 6 8
      public/.htaccess
  5. 13 0
      web.config

+ 8 - 0
.htaccess

@@ -0,0 +1,8 @@
+<IfModule mod_rewrite.c>
+Options +FollowSymlinks -Multiviews
+RewriteEngine on
+
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
+</IfModule>


+ 5 - 0
nginx.conf

@@ -0,0 +1,5 @@
+location / {
+	if (!-e $request_filename){
+		rewrite  ^(.*)$  /index.php?s=$1  last;   break;
+	}
+}

+ 6 - 8
public/.htaccess

@@ -1,10 +1,8 @@
-RewriteEngine
-on
+<IfModule mod_rewrite.c>
+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]
+RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
+</IfModule>

+ 13 - 0
web.config

@@ -0,0 +1,13 @@
+<rewrite> 
+<rules> 
+<rule name="OrgPage" stopProcessing="true"> 
+<match url="^(.*)$" /> 
+<conditions logicalGrouping="MatchAll"> 
+<add input="{HTTP_HOST}" pattern="^(.*)$" /> 
+<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> 
+<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> 
+</conditions> 
+<action type="Rewrite" url="index.php/{R:1}" /> 
+</rule> 
+</rules> 
+</rewrite>