网址静态化不了,而且除了点问题,求教  已解决

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

版主: Jack, shaning

网址静态化不了,而且除了点问题,求教

帖子zazaza360 » 2012-04-11 17:23

目录,产品的网址都可以,News模块不行如:index.php?main_page=more_news&news_id=36这样。
还有具体产品页上面的目录页地址错误,本来应该是www.*****.com/产品名字-c-1.html 但是现在就www.*****.com/--c-1.html,求.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]
RewriteRule ^(.*)-ezp-([0-9]+).html$ index\.php?main_page=page&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&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]
zazaza360
普通会员
普通会员
 
帖子: 30
注册: 2010-03-25 21:55
QQ 帐号: 787767818

Re: 网址静态化不了,而且除了点问题,求教

帖子zencarter » 2012-04-11 18:04

RewriteBase //
这个是不是错了
头像
zencarter
VIP会员
VIP会员
 
帖子: 800
注册: 2011-06-22 15:03
地址: zencart模板建站 产品采集
QQ 帐号: 631992791

Re: 网址静态化不了,而且除了点问题,求教  已解决

帖子kira » 2012-04-13 13:14

一 商店设置 --> 搜索引擎优化 --> 清空 输入需要优化的页面 项里的全部内容
二 楼上给你点出来的 小毛病
头像
kira
VIP会员
VIP会员
 
帖子: 1365
注册: 2010-03-06 11:38
地址: Q群: 110470320, 欢迎被 电 "伤" 着了的同学进来鬼混,妹纸免审优先,发广告的一边儿玩儿去, 博客:http://zcbk.org/
QQ 帐号: 6171718

Re: 网址静态化不了,而且除了点问题,求教

帖子zazaza360 » 2012-04-14 16:22

谢谢你,现在NEWS这个搞定了,还有一个问题就是我具体产品页面,Home > 目录 > 具体产品 ,像这个地方的目录页的网址不是目录页,全部都是www.*****.com/-c-.html 这种的。请不吝赐教!
zazaza360
普通会员
普通会员
 
帖子: 30
注册: 2010-03-25 21:55
QQ 帐号: 787767818


  • 相关话题
    回复总数
    阅读次数
    最新文章

回到 安装设置



在线用户

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