Magento-利用.htaccess开启gzip压缩提速 13 November 2010 10:44 Saturday by 小屋 浏览(2095)

使用这个功能的前提是:magento网站所在主机支持gzip压缩!

另外Magento 本身根目录自带的.htaccess 就有写入开启gzip压缩 的代码,只是被注释了,我们只需要把相关的注释去掉,下面,跟我一起&……*&*

对magento根目录的.htaccess 操作:

搜索output_compression ,把#php_flag zlib.output_compression on这行的#去掉。

搜索SetOutputFilter ,找到相关的是

    # Insert filter on all content
    ###SetOutputFilter DEFLATE
    # Insert filter on selected content types only
    #AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript

    # Netscape 4.x has some problems...
    #BrowserMatch ^Mozilla/4 gzip-only-text/html

阅读全文>>

蜘蛛啊爬虫啊太勤劳了。。 14 July 2010 14:25 Wednesday by小屋 浏览(1482)

大前天写了一篇,抓取蜘蛛爬虫痕迹的文章,之后就根据写的代码在本站 上测试。

经过两天的时间,来发表一下对一些搜索引擎的爬虫蜘蛛的看法。。

整天24小时几乎都有爬虫过来爬。。那些大咔的和小咔的。 其中sogou最积极。。

下面截取上午到下午几小时内的记录:

 

[2010-07-14 10:40:55] Baidu    :220.181.7.35 | /tag/歌曲 | Baiduspider+(+http://www.baidu.com/search/spider.htm)
[2010-07-14 10:41:02] Baidu    :123.125.66.18 | /post/583 | Baiduspider+(+http://www.baidu.com/search/spider.htm)
[2010-07-14 10:41:59] YandexBot:87.250.255.242 | /post/532 | Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)
[2010-07-14 10:42:49] So

阅读全文>>