首页出现404 错误 page not found

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

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

首页出现404 错误 page not found

帖子longdarke » 2010-11-23 12:12

我从hostnine上转移了几个站到godaddy上 数据库连接配置等都弄好了 可打开网站首页 就跳出一个下载框 相当于下载网页 后台却可以正常打开 ,去看了下.htaccess文件, 在里面添加了句RewriteBase /,前台就可以显示 ,但首页却显示404错误 ,找不到页面,内页却可以正常访问 且在域名后面加上/index.php后 首页也能正常访问 , 不知是这个站的.htaccess设置有问题还是哪出了问题 求救!!!
这是我的.htaccess文件内容
代码: 全选
Options +FollowSymLinks
#Options +SymLinksIfOwnerMatch
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 [OR]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L]
longdarke
高级会员
高级会员
 
帖子: 103
注册: 2010-04-03 17:24

Re: 首页出现404 错误 page not found

帖子yisou » 2012-02-13 0:10

我也遇到这个同样问题了。请问楼主这个问题能分享下解决方法吗?
yisou
新手上路
新手上路
 
帖子: 5
注册: 2009-05-22 18:43

Re: 首页出现404 错误 page not found

帖子zencarter » 2012-02-13 21:05

把.htaccess删除,重新上传试下
头像
zencarter
VIP会员
VIP会员
 
帖子: 535
注册: 2011-06-22 15:03
地址: zencart建站 模板 产品采集 支付宝担保交易 http://t.qq.com/wb631992791
QQ 帐号: 631992791


回到 安装设置

 


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

在线用户

正在浏览此版面的用户:没有注册用户 和 5 位游客