如何设置搜索引擎优化 / SEO?

Zen Cart的安装、设置、升级讨论和使用技巧交流

版主: 赞拓拓, shaning, 美拓拓

Re: 如何设置搜索引擎优化 / SEO?

帖子lookupsee » 2009-05-11 11:02

收藏了,顶顶
lookupsee
普通会员
普通会员
 
帖子: 22
注册: 2009-04-24 6:52

Re: 如何设置搜索引擎优化 / SEO?

帖子lookupsee » 2009-05-11 11:16

谁知道 我进行 打开 搜索引擎优化后,前台商品 打不开了???
打开搜索引擎优化吗? true
在商品的网址中添加cPath吗? true
在网址前增加上级分类吗? true
过滤太短的单词 0
输出兼容W3C的网址 (参数串)? false
打开缓存以减少查询次数吗? true
打开商品缓存吗? true
打开目录缓存吗? true
打开厂家缓存吗? true
打开文章缓存吗? true
打开信息缓存吗? true
打开自动跳转吗? false
选择网址重写类型 Rewrite
输入特殊字符转换
要删除字母数字外的所有字符吗? false
重置缓存 false
输入需要优化的页面 index, product_info, products_new, products_all, featured_products, specials, contact_us, conditions, privacy, reviews, shippinginfo, faqs_all, site_map, gv_faq, discount_coupon, page, page_2, page_3, page_4

谁能具体解释下 这些参数 都是 什么意思???设置后有什么效果 ???改怎么设置??? 谢谢
lookupsee
普通会员
普通会员
 
帖子: 22
注册: 2009-04-24 6:52

Re: 如何设置搜索引擎优化 / SEO?

帖子lookupsee » 2009-05-11 12:31

topic1280.html
三.取消ISAPI_Rewrite安装目录中的httpd.ini只读属性,然后编写规则
直接把第二步中的.htaccess文件中的内容复制过来.
关键的步骤到了,这也是IIS和APC下的不同
第一: ?改为\?
第二:表示转换符号的 $+空格 改为 空格+/ 这也是我上一次测试没成的原因,这个很关键.
大家可以直接拿.htaccess文件来改

##### NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below:

Options +FollowSymLinks
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]

现在我有2个问题需要确认:
1》?改为\? 这个地方 是 修改 为\? 还是/? .htaccess 这个文件里都找不到一个\ 这样的字符, 都全是/ 这样的, 所以不清楚 这个问题
2》表示转换符号的 $+空格 改为 空格+/ .htaccess 这个文件里都找不到一个$+空格 的地方, 所以很 郁闷
lookupsee
普通会员
普通会员
 
帖子: 22
注册: 2009-04-24 6:52

Re: 如何设置搜索引擎优化 / SEO?

帖子马雨 » 2009-05-15 9:42

【1. 确认网站支持mod_rewrite,且主机允许你使用自己的.htaccess文件

2. .htaccess 文件名字正确 (前面有个点)

3. 将根目录下的文件htaccess_sample改名为 .htaccess,并修改其中的 /shop/ 为您的zen cart目录。
如果你的域名指向的目录是zencart的根目录,那么 RewriteBase /
如果是 http://www.domain.com/zencart/ 这样的形式打开网站,那么 RewriteBase /zencart/

我按着这个做的,就打不开网页了,返回500错误 :shock:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
马雨
初来乍到
初来乍到
 
帖子: 4
注册: 2009-05-10 0:17

Re: 如何设置搜索引擎优化 / SEO?

帖子billy » 2009-05-19 17:16

我用的空间ixwebhosting是windows平台的,但是不支持mod_rewrite。请问 如何设置搜索引擎优化 / SEO?
billy
新手上路
新手上路
 
帖子: 8
注册: 2009-04-24 12:14

Re: 如何设置搜索引擎优化 / SEO?

帖子daimadaquan » 2009-06-05 20:50

顶下,以后用得着的。
头像
daimadaquan
论坛版主
论坛版主
 
帖子: 512
注册: 2009-03-09 17:34
地址: 江苏 南京

Re: 如何设置搜索引擎优化 / SEO?

帖子king9168 » 2009-06-07 20:45

我按照老大的方法设置了一下,但怎么 新进产品 特价产品 推荐产品的页面 url并没有重写啊~~
仍然是 http://localhost/zen-cart/index.php?main_page=specials
http://localhost/zen-cart/index.php?mai ... d_products
http://localhost/zen-cart/index.php?mai ... oducts_new

请老大指教下!
king9168
新手上路
新手上路
 
帖子: 19
注册: 2009-06-07 19:43

Re: 如何设置搜索引擎优化 / SEO?

帖子king9168 » 2009-06-07 21:50

我已按照老大方法一一做了,但是 新进产品 特价产品等几个页面url并没有 rewrite 啊!
但是产品页面可以了。

是哪里设置错了??
king9168
新手上路
新手上路
 
帖子: 19
注册: 2009-06-07 19:43

Re: 如何设置搜索引擎优化 / SEO?

帖子Jack » 2009-06-08 4:53

如果你说的是页面上的那些链接,需要到后台的 工具-简易页面管理 下,修改链接
头像
Jack
论坛版主
论坛版主
 
帖子: 11665
注册: 2004-12-16 10:04

Re: 如何设置搜索引擎优化 / SEO?

帖子carter » 2009-06-25 19:37

请教下 jack, 我现在设置成功了,但是我希望在类别的URL里面加上字,比如原来是 http://www.abc.com/shoes-c-5.html, 我想设成 http://www.abc.com/fashion-shoes-c-5.html. 想设成这样的,请问下如何设置,谢谢
carter
高级会员
高级会员
 
帖子: 298
注册: 2009-04-18 13:59

上一页下一页

回到 安装设置

在线用户

正在浏览此版面的用户:Yahoo [Bot] 和 4 位游客