分享

写回答

发帖

[提问] GD的linux 空间伪静态.htaccess生成有问题

GoDaddy GoDaddy 4202 人阅读 | 8 人回复

发表于 2010-4-6 15:36:23 | 显示全部楼层 |阅读模式

http://bbs.idcspy.com/thread-71669-1-1.html首先我参考了此贴子了,但因为用的是DZ论坛,所以还是有点不太一样。
我购买了一个SSL+Deluxe Plan的linux空间,我使用的是zen cart程序,现在打开我的网页www.shoppinglucky.com有问题。经检查,同样的程序在bluehost里面没有任何问题,但在godaddy里面有问题,请高人指点一下
1,问题是:www.shoppinglucky.com点击首页下面的
未命名.jpg
A,B,C,D等都打不开http://www.shoppinglucky.com/producttags/A/(打不开),但是动态的却能打开如:
2,http://www.shoppinglucky.com/Wholesale-cell-phones-hiphone_c407这个页面中也同样有问题,
未命名2.jpg
点List与Grid都打不开。

而以上问题我在用bluehost空间却没有此问题,可参见www.cec.hk 这个网站没有任何问题,请求帮忙解析!
以下为.htaccess全部内容,请指出是何问题,多谢了:
##### NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below:
        RewriteEngine On

DirectoryIndex index.php index.htm index.html pagename.html
# For security reasons, Option followsymlinks cannot be overridden.
#Options +FollowSymLinks
Options +SymLinksIfOwnerMatch

RewriteEngine On

RewriteBase /



# From Ultimate SEO URLs

RewriteRule ^print_page_p(.*)$ index\.php?main_page=print_page&products_id=$1&%{QUERY_STRING} [L]

RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]

RewriteRule ^(.*)_c([0-9]+)$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]

RewriteRule ^(.*)_c([0-9]+)/([-\w]*)$ index\.php?main_page=index&cPath=$2&display=$3&%{QUERY_STRING} [L]

RewriteRule ^(.*)_c([0-9]+)/([-\w]*)/([-\w]*).html$ index\.php?main_page=index&cPath=$2&display=$3&%{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 ^producttags/([-\w]+)/$ index\.php?main_page=producttags&letter=$1&%{QUERY_STRING} [L]

RewriteRule ^producttags/([\w])/([0-9]+).html$ index\.php?main_page=producttags&letter=$1&page=$2&%{QUERY_STRING} [L]

RewriteRule ^wishlist/$ index\.php?main_page=wishlist [L]

RewriteRule ^wishlist/([\w])/$ index\.php?main_page=wishlist&letter=$1&%{QUERY_STRING} [L]

RewriteRule ^wishlist/([\w])/([0-9]+).html$ index\.php?main_page=wishlist&letter=$1&page=$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]



###Start Kloxo PHP config Area
###Please Don't edit these comments or the content in between. kloxo uses this to recognize the lines it writes to the the file. If the above line is corrupted, it may fail to recognize them, leading to multiple lines.
<Ifmodule mod_php4.c>
php_value error_log /home/admin/__processed_stats/shoppingbtc.com.phplog
php_value upload_max_filesize 2M
php_value max_execution_time  30
php_value max_input_time  60
php_value memory_limit  32M
php_value post_max_size  8M
php_flag register_globals  off
php_flag display_errors  off
php_flag file_uploads  on
php_flag log_errors  off
php_flag output_buffering  off
php_flag register_argc_argv  on
php_flag magic_quotes_gpc   off
php_flag magic_quotes_runtime  off
php_flag magic_quotes_sybase  off
php_flag mysql.allow_persistent  off
php_flag register_long_arrays  on
php_flag allow_url_fopen  on
php_flag cgi.force_redirect  on
php_flag enable_dl  on
</Ifmodule>
<Ifmodule mod_php5.c>
php_value error_log /home/admin/__processed_stats/shoppingbtc.com.phplog
php_value upload_max_filesize 2M
php_value max_execution_time  30
php_value max_input_time  60
php_value memory_limit  32M
php_value post_max_size  8M
php_flag register_globals  off
php_flag display_errors  off
php_flag file_uploads  on
php_flag log_errors  off
php_flag output_buffering  off
php_flag register_argc_argv  on
php_flag magic_quotes_gpc   off
php_flag magic_quotes_runtime  off
php_flag magic_quotes_sybase  off
php_flag mysql.allow_persistent  off
php_flag register_long_arrays  on
php_flag allow_url_fopen  on
php_flag cgi.force_redirect  on
php_flag enable_dl  on
</Ifmodule>

###End Kloxo PHP config Area

[ 本帖最后由 阳光青春 于 2010-4-6 03:39 PM 编辑 ]

回答|共 8 个

add.c

发表于 2010-4-6 15:50:12 | 显示全部楼层

shoppinglucky.com 这个域名是绑定在空间根目录的??

阳光青春

发表于 2010-4-6 16:07:26 | 显示全部楼层

是呀,肯定是绑定在根目中呀,就是用独立IP访问网站,也有相同的问题:http://97.74.186.13/
RAKSmart

阳光青春

发表于 2010-4-6 16:44:41 | 显示全部楼层

咋没有人回复呀,唉,在线等呢,真的很急。

阳光青春

发表于 2010-4-6 17:24:44 | 显示全部楼层

E有没有懂的人在呀

阳光青春

发表于 2010-4-6 17:38:13 | 显示全部楼层

  唉,找了一天,也没有找到具体的原因,不知道是不是空间有问题呢?

lflrjj

发表于 2010-5-8 18:27:57 | 显示全部楼层

楼主的问题貌似已经解决了,怎么搞的啊

foo

发表于 2010-11-18 18:30:22 | 显示全部楼层

跪求楼主解决办法

我也遇到和楼主一样的问题, 不知楼主怎么解决的!

跪求!

膜拜楼主!

qq456128

发表于 2010-11-22 22:39:17 | 显示全部楼层

首先得说下。。我不是高手。也不知能不能解决这问题。我是为了回答这问题才注册。。
首先说那htaccess代码。我不知道你写那么长做什么。。有必要吗?
其实最重要的问题是。。你不知道[L]  这代表代码的结束吗?就是说[L]以后的代码都是作废的
您需要登录后才可以回帖 登录 | 注册

本版积分规则