mr-liusg 9 жил өмнө
parent
commit
d8c01a4988

+ 1 - 0
.htaccess

@@ -4,5 +4,6 @@
 
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
+  RewriteCond $1 !^(index\.php|robots\.txt|favicon\.ico)
   RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
 </IfModule>

+ 1 - 3
Application/Home/Controller/ItemController.class.php

@@ -100,8 +100,6 @@ class ItemController extends BaseController {
             }
         }
 
-
-
         $share_url = get_domain().__APP__.'/'.$item_id;
 
         $ItemPermn = $this->checkItemPermn($uid , $item_id) ;
@@ -175,7 +173,7 @@ class ItemController extends BaseController {
             $item = D("Item")->where("item_id = '$item_id' ")->find();
             if ($item['password'] == $password) {
                 session("visit_item_".$item_id , 1 );
-                header("location:".U("Home/item/show").'?item_id='.$item_id);
+                header("location:".U("Home/Item/show").'?item_id='.$item_id);
             }else{
                 
                 $this->message("访问密码不正确");

+ 1 - 1
Application/Home/View/Page/edit.html

@@ -30,7 +30,7 @@
         </div>
         <div class="head-right pull-right">
             <a href="#" class="btn btn-primary " id="save">保存</a>
-            <a href="../item/show?item_id={$item_id}&page_id={$page.page_id}" class="btn cancel">取消</a>
+            <a href="../Item/show?item_id={$item_id}&page_id={$page.page_id}" class="btn cancel">取消</a>
         </div>
     </header>
     <br>

+ 2 - 0
robots.txt

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