24

iis rewrite for zen cart 1.3.8 静态优化移植到IIS服务器

FILED IN 建站知识 No Comments

iis下zencart静态SEO实现方法汇总 ISAPI_Rewrite

iis 下zencart静态SEO实现方法汇总,FOR1.2.7&1.3.01
方法A.模块插件式安装,后台可以控制开关。
一..首先安装ISAPI_Rewrite FOR IIS6,用IIS支持REWRITE模块,最新的版本是2.8在这里下载:
ISAPI_Rewrite2.8 下载地址
不管哪个版本的zencart要让IIS实现REWRITE这个是必装的,下完后安装文件是.MIS文件,直接默认安装就可以了.完成后重新启动IIS.
二.安装Ultimate SEO URLs 2.101 for zencart1.3.01/安装Ultimate SEO URLs 2.100 for zencart1.2.7
Ultimate SEO URLs 2.101 下载地址for zencart1.3.01
Ultimate SEO URLs 2.100 下载地址for zencart1.2.7

For this v1.3.0-compatible version, follow the installation instructions at the URL below, (1.3.0版本相对1.2.X的步骤稍有不同)
BUT WITH THE FOLLOWING EXCEPTIONS:
1. skip step #2 … editing application_top.php(参照安装帮助跳过第2步。)
2. steps 3-5, already-edited versions of these files are in the "1301_specific_files" folder. (第3到第5步的文件修改已经包含在1301_specific_files文件夹中)
Simply upload these to the related folder on your site. You should rename the existing file to *.bak before copying.(上传前请务必先保存文件为*.BAK)
3. step 6 … a sample .htaccess file is included. Simply rename to .htaccess and edit the word /shop/ to match your stie(第6步中的.htaccess文件中的内容如果站点在根目录也不用修改)。
安装详细步骤连接参考
INSTALLATION INSTRUCTIONS:
http://www.dream-scape.com/pub/zen … SEO_URLs/install.html
三.取消ISAPI_Rewrite安装目录中的httpd.ini只读属性,然后编写规则
直接把第二步中的.htaccess文件中的内容复制过来.
关键的步骤到了,这也是IIS和APC下的不同
第一: ?改为\?
第二:表示转换符号的 $+空格 改为 空格+/ 这也是我上一次测试没成的原因,这个很关键.
大家可以直接拿.htaccess文件来改
1.3.01 规则
[ISAPI_Rewrite]
##### NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below:
Options +FollowSymLinks
Options FollowSymLinks
AllowOverride All
RewriteEngine On
RewriteBase /
# From Ultimate SEO URLs
RewriteRule ^(.*)-p-(.*).html /index\.php\?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-(.*).html /index\.php\?main_page=index&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-m-([0-9]+).html /index\.php\?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pi-([0-9]+).html /index\.php\?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pr-([0-9]+).html /index\.php\?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pri-([0-9]+).html /index\.php\?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
# For Open Operations Info Manager
RewriteRule ^(.*)-i-([0-9]+).html /index\.php\?main_page=info_manager&pages_id=$2&%{QUERY_STRING} [L]
# For dreamscape”s News & Articles Manager
RewriteRule ^news/?$ index\.php\?main_page=news&%{QUERY_STRING} [L]
RewriteRule ^news/rss.xml /index\.php\?main_page=news_rss&%{QUERY_STRING} [L]
RewriteRule ^news/archive/? /index\.php\?main_page=news_archive&%{QUERY_STRING} [L]
RewriteRule ^news/([0-9]{4})-([0-9]{2})-([0-9]{2}).html /index\.php\?main_page=news&date=$1-$2-$3&%{QUERY_STRING} [L]
RewriteRule ^news/archive/([0-9]{4})-([0-9]{2}).html /index\.php\?main_page=news_archive&date=$1-$2&%{QUERY_STRING} [L]
RewriteRule ^news/(.*)-a-([0-9]+)-comments.html /index\.php\?main_page=news_comments&article_id=$2&%{QUERY_STRING} [L]
RewriteRule ^news/(.*)-a-([0-9]+).html /index\.php\?main_page=news_article&article_id=$2&%{QUERY_STRING} [L]
# All other pages
# Don”t rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html /index\.php\?main_page=$1&%{QUERY_STRING} [L]

1.2.7 规则
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
# OLD SEO URLS
# Give a 301 to real URL (which Ultimate SEO will give a 301 to new SEO URL)
# You can remove the following if you were not using the breakmyzen-cart.com SEFU prior to installing this one
# BEGIN SAFE REMOVE
RewriteRule ^(.*)pages-main/category-(.*)/page-([0-9]+)/sort-(.*)/(.*).html index\.php?main_page=index&cPath=$2&page=$3&sort=$4&%{QUERY_STRING} [L,R=301]
RewriteRule ^(.*)pages-main/category-(.*)/(.*).html index\.php\?main_page=index&cPath=$2&%{QUERY_STRING} [L,R=301]
RewriteRule ^(.*)pages-productinfo/category-(.*)/product-(.*)/(.*).html index\.php\?main_page=product_info&cPath=$2&products_id=$3&%{QUERY_STRING} [L,R=301]
RewriteRule ^(.*)pages-productinfo/product-(.*)/(.*).html index\.php\?main_page=product_info&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteRule ^(.*)pages-product_reviews_info/product-(.*)/reviews_id-([0-9]+)/(.*).html index\.php\?main_page=product_reviews_info&products_id=$2&reviews_id=$3&%{QUERY_STRING} [L,R=301]
RewriteRule ^(.*)pages-info_manager/pages_id-([0-9]+)/(.*).html index\.php\?main_page=info_manager&pages_id=$2&%{QUERY_STRING} [L,R=301]
RewriteRule ^(.*)pages-product_music_info/product-(.*)/(.*).html index\.php\?main_page=product_music_info&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteRule ^(.*)pages-(.*)/index.html index\.php\?main_page=$2&%{QUERY_STRING} [L,R=301]
# END SAFE REMOVE
# From Ultimate SEO URLs
RewriteRule ^(.*)-p-(.*).html$ index\.php\?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-(.*).html$ index\.php\?main_page=index&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-m-([0-9]+).html$ index\.php\?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php\?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php\?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php\?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pmi-([0-9]+).html$ index\.php\?main_page=product_music_info&products_id=$2&%{QUERY_STRING} [L]
# For Open Operations Info Manager
RewriteRule ^(.*)-i-([0-9]+).html$ index\.php\?main_page=info_manager&pages_id=$2&%{QUERY_STRING} [L]
# For dreamscape”s News & Articles Manager
RewriteRule ^news/?$ index\.php?main_page=news&%{QUERY_STRING} [L]
RewriteRule ^news/rss.xml$ index\.php\?main_page=news_rss&%{QUERY_STRING} [L]
RewriteRule ^news/archive/?$ index\.php\?main_page=news_archive&%{QUERY_STRING} [L]
RewriteRule ^news/([0-9]{4})-([0-9]{2})-([0-9]{2}).html$ index\.php\?main_page=news&date=$1-$2-$3&%{QUERY_STRING} [L]
RewriteRule ^news/archive/([0-9]{4})-([0-9]{2}).html$ index\.php\?main_page=news_archive&date=$1-$2&%{QUERY_STRING} [L]
RewriteRule ^news/(.*)-a-([0-9]+)-comments.html$ index\.php\?main_page=news_comments&article_id=$2&%{QUERY_STRING} [L]
RewriteRule ^news/(.*)-a-([0-9]+).html$ index\.php\?main_page=news_article&article_id=$2&%{QUERY_STRING} [L]
# All other pages
# Don”t rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ index\.php\?main_page=$1&%{QUERY_STRING} [L]

14

metinfo3.0完美破解方法

FILED IN 建站知识 No Comments

metinfo3.0破、完美破解、如何去掉—Powered by MetInfo 彻底解决 留言成功不能提示注册不能提示消息的问题

上一次 破解是随便去掉 弹出的 alert 框 ,但后来注册成功不能提示,留言成功不提示。

后来研究了下 是 okinfo函数的 echo 被我破坏了,使之输出为空了

这一次彻底来破解这个metinfo函数,其实没必要去解密metinfo加密的数据,太麻烦了新手也不容易懂。我就用了一个老套的方法但很实用,新手容易理解操作。

方法:

1. 打开 include 找到common.inc.php 打开后找到

$met_webname=$met_webname.“—Powered by MetInfo”;

删掉 .”—Powered by MetInfo” 即可

2. 打开include目录中的global.func.php

用ctrl+F查找 okinfo( 会跳转到

function okinfo($url = ‘../site/sysadmin.php’,$langinfo){

echo(“”);

exit;

}

3. 将上面的代码复制一下然后 在下面粘贴一下就会出现

function okinfo($url = ‘../site/sysadmin.php’,$langinfo){

echo(“”);

exit;

}

function okinfo($url = ‘../site/sysadmin.php’,$langinfo){

echo(“”);

exit;

}

4. 将第一个的 echo(“”);

前面加上 //

结果为 //echo(“”);

意思将此代码注释掉

5. 用批量替换工具或者DW替换掉整个网站目录中文件包含 okinfo( 替换成 okinfo2(

6. 再打开include目录中的global.func.php

查找 okinfo2( 就会跳转到

function okinfo2($url = ‘../site/sysadmin.php’,$langinfo){

//echo(“”);

exit;

}

function okinfo2($url = ‘../site/sysadmin.php’,$langinfo){

echo(“”);

exit;

}

最后将第一个 okinfo2( 中的2删除了成为 okinfo(

结果为

function okinfo($url = ‘../site/sysadmin.php’,$langinfo){

//echo(“”);

exit;

}

function okinfo2($url = ‘../site/sysadmin.php’,$langinfo){

echo(“”);

exit;

}

就这样破解了 metinfo 系统的 弹出框 说是没经授权不能去掉版权 而且注册 留言都会弹出成功的提示框了

最后帮助菜鸟们去掉底部 版权

部的 打开templates\你正在使用的模版\foot.html

例如:我使用的是met007那就打开templates\met007\foot.html 找到

< div class=”powered_by_metinfo”>

Powered by

MetInfo

{$metcms_v} ©2008-$m_now_year

www.MetInfo.cn

然后删掉保存就行了

02

盗链的新方法

FILED IN 建站知识 No Comments

ISAPI_Rewrite的httpd.ini内容写的是下面内容,如果你也遇到盗链的困扰,建议可以参考一下:

RewriteCond Host: (.+)
RewriteCond Referer: (?!http://(?:www\.williamlong\.info|www\.moon-blog\.com|www\.bloglines\.com|www\.zhuaxia\.com|www\.google\.com|cache\.baidu\.com)).+
RewriteRule .*\.(?:jpg|kmz|kml|zip) /block.gif [I,O]

  注释:第二行里面的域名是允许链接图片的网站列表,目前我允许我自己的两个站和另外bloglines、zhuaxia、google、baidu这四个网站引用我站文件,其他网站的引用被禁止。

  第三行是禁止引用的文件类型,包括jpg图片、Google Earth的kmz和kml、zip文件。当然,还可以增加其他类型,比如gif、rar等,因为我站没有那些文件,所以没有添加上去。

,

13十二

外贸网站推广四大忌讳

FILED IN 外贸知识 | 建站知识 No Comments

外贸网站的推广关系你的订单量的多少,这将直接影响到你的收入以及在公司的受重视程度,在当今全球经济不景气的今天,外贸零售似乎成了众多外贸企业的一颗救命稻草。所以就看你如何抓住了。

  作为外贸新手,在推广外贸网站过程当中,如果犯了以下的四点忌讳,你的外贸站将不会有太大的成果。搞不好还会被国外客户打入冷宫,甚至是被搜索引擎鄙视。所以作为新手我们一定要注意。

  忌讳一:外贸站语句不通顺。还存在低级的语言障碍。

  这一点虽然说对于做外贸站多年的老手来说并不算什么,但是对于刚刚入门的新手来说却是要万分注意的问题。假如在你的外贸站当中出现了很低级的错误,可能国内人不觉得有什么,但是在老外的心里,这说明你不是一个合格的生意人,表达都不清楚,这些错误是相当低级的,他们心里也许并不认同你的网站的安全性。如果是大企业,一般不会出现这样的问题。所以网站的语言一定要注意,最好不要出现低级的错误。

  忌讳二:网站前台页面的设计风格太花哨。

  要知道,我们做的是外贸站,面对的是国外的客户,尤其是欧美一些国家,他们并不喜欢一些太花哨的东西。你可以看一些国外的企业的网站,一般都是非常简洁的界面设计,能省的地方都会去掉。这就考虑到网站的用户体验问题了。如果你是外贸站的站长,所以请在设计网站的前台页面的时候一定要充分考虑到是否符合外国客户的审美观念。如果网站产品是专门针对某个国家的,这种用户体验就更加需要考虑了。好的网站给人的感觉是不一样的,一种交互设计,确实能够为你的网站带来订单。

  忌讳三:网站域名的选择,不要太随意。

  外贸网站的特殊性,建议大家在做的时候,网站的域名最好是选择和产品关键词相关的。比如wedding dress 外贸婚纱,所以你在选择域名的时候最好在域名中也出现这个词,长一点没有关系,最主要的是让人能够很清晰的记得你的网站,增加回头客的概率。不要以为越简洁越好,外贸网站是很特殊的电子商务网站,域名中包含关键词这有利于搜索引擎的抓取,这一点还是非常重要的。
  忌讳四:最好不要放在线聊天系统。

  国内很多独立的外贸网店总喜欢在页面上放很多看起来很实用的东西,比如在线聊天,在线咨询系统,每次一打开网站那些东西就会漂浮上来,给人一种非常厌烦的感觉。虽然说方便了用户的咨询,但是在无形之中,让客人觉得你非常讨厌。尤其是在国外人常用Email作为联系方式的时代,在线的系统就显得没有什么必要了。频繁的催促客人是否需要购买,只会显得欲速则不达!搞不好还会让你丢单!

, ,

TOP