蓝海豚团购导航系统完全批改日记
以下是近期对蓝海豚团购导航系统4的修改记录,修改后的网站:http://www.10086money.com
时间:2011-11-1
修改文件:www\lht4\views\admin\index.php
新增文件:www\lht4\views\admin\js\someNav.js
修改说明:index.php引入了someNav.js
修改内容:增加管理员登陆判断。
-------------------------------------------------------
时间:2011-11-2
修改文件:www\lht4\views\default4\header.php
新增文件:
www\lht4\views\default4\groups_passed_index.php
www\lht4\controls\index_passed.class.php
修改内容:1. header.php 增加“往期团购”链接
2.新增groups_passed_index.php文件
3. 新增 ndex_passed.class.php文件
-------------------------------------------------------
时间:2011-11-3
删除文件:www\lht4\controls\index_passed.class.php
新增文件:www\lht4\controls\indexPassed.class.php
修改文件:www\lht4\views\default4\header.php
修改内容:1.由于IIS服务器上的重写规则如下:
RewriteRule ^/http(?:\.ini|\.parse\.errors).*$ / [NC,F,O]
RewriteRule ^.*\.isrwhlp$ / [NC,F,O]
也就是 http开头的请求,它才会对它进行解析重写。
所有将header.php中的“往期团购 “的a整改如下:
原来:<a href=”index.php?con=indexPassed&flag=passed”/>
改为:<a href=<?php echo url('indexPassed','index',array("flag" => "passed"));?>/>
因为url函数将会返回:
http://www.10086money.com?index.php&con=indexPassed&flag=passed
经过IIS的重写规则将变成:http://www.10086money.com/con_indexPassed-flag_passed.html
这样就达到伪静态化的目的,去除问好和花号,简化路径,有利于百度蜘蛛的收录。
>>>>>>>>>>>转载请注明出处:http://www.10086money.com