飞龙博客

妙法莲华经

zencart seo模块ceon url mapping安装方法步骤

feilong.org 修订于2010-08-22 06:06:42 348 次浏览

飞龙安装zencart139f后,第一个配置的seo模块是ceon url mapping,它可以实现url的静态效果。怎么安装这个url模块呢?飞龙这里写下简易安装方法步骤,本日志更新网址:http://feilong.org/zencart-ceon-url-mapping 飞龙第4次修订于20100822 ,希望对您有用。

1、首先下载 ceon_uri_mapping_3.6.3_for_zc
zen-cart.com/forum/showthread.php?t=117613

2、解压后,你会发现里面有这么几个文件夹。飞龙提示:如果你修改了zencart的admin文件夹名称,注意保持一致!

docs:此模块配套文档,里面有详尽介绍ceon url mapping
files:此模块的主体文件,把里面的文件直接上传到zencart网店的根目录即可。
modified_core_files:与此模块相关的zencart程序文件,主要是修改了zencart的部分文件,找到里面的适当版本,再上传到zencart网店的根目录。template_override_files:与此模块相关的zencart程序文件,主要是修改了zencart的模板部分文件,找到里面的适当版本,再上传到zencart网店的你的zencart模板相应目录

除此还有license和readme文件,略过。

3、按上面说的方法上传后,进入zencart后台。

4、找到 Modules > Ceon URI Mapping (SEO) Config,进行必要的调整,一般默认即可。

5、飞龙提示:此模块由于是免费模块,所以并不自动生成友好的url,需要你手动填写url,对于飞龙这类懒人来说,肯定是不愿意。一般主要有4类:Category、Product、Manufacturer、EZ-Page。比如分类url的优化:后台找到Catalog > Categories/Products,然后编辑或新加一个产品,最下面有url选项。晕,这么麻烦!此模块作者有自动处理的模块叫做URI Mappings Manager,是收费模块,算是ceon url mapping的商业版。

6、下一步是添加url重写规则。

1)如果网站安装在域名根目录,那么在网店安装文件夹下,新建立一个.htaccess文件,加上以下代码:

RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/admin [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel [NC]
RewriteCond %{REQUEST_URI} !/frontend [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule .* index.php?%{QUERY_STRING} [L]
2)如果网站安装在文件夹下,那么修改为:

RewriteEngine On

# ONLY rewrite URIs beginning with /shop/
RewriteCond %{REQUEST_URI} ^/shop/ [NC]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/shop/admin [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/shop/editors [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel [NC]
RewriteCond %{REQUEST_URI} !/frontend [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule .* index.php?%{QUERY_STRING} [L]

飞龙提示:如何你修改了admin的名称,请保持一致。shop文件夹改为你自己的文件夹名称。
 

更新网址:https://feilong.org/zencart-ceon-url-mapping
最初发布:20100822 06:06:42 feilong.org 于广州

加入收藏夹,查看更方便。

所在分类: 建站程序

新作:

旧文: