raksmart活动促销

分享

写回答

发帖

[提问] ix是不是不支持.htaccess

国外虚拟主机 国外虚拟主机 4141 人阅读 | 11 人回复

发表于 2011-4-12 13:30:44 | 显示全部楼层 |阅读模式

zencart程序。安装ultimate_seo_urls_2-110这个插件后。就不行。rewrite规则是不是有问题。哪里修改。

##### 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&%{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]
TRING} [L]

回答|共 11 个

shugangli

发表于 2011-4-12 13:33:40 | 显示全部楼层

支持的
你自己设置下啊
需要加的

add.c

发表于 2011-4-12 13:35:26 | 显示全部楼层

可以的. 检查你的规则是否正确

tracy01

发表于 2011-4-12 13:35:27 | 显示全部楼层

如何设置。。。。求指教。。这个规则我另外一个站是可以。。新的站出问题。同样的.htaccess

tracy01

发表于 2011-4-12 13:38:57 | 显示全部楼层

回复 3# 的帖子

我把规则粘出来了。能否看下正确不?

微微百科

发表于 2011-4-12 13:49:10 | 显示全部楼层

有什么错误提示吗?

tracy01

发表于 2011-4-12 14:10:27 | 显示全部楼层

OOPS!....Page Error 404 has occurred.。。。提示这个。分类页目录全部出现400。。。。。。。。。首页正常。

如果.htaccess改名。。首页访问正常。

不改名.htaccess。。。全部出现500错误。。。

[ 本帖最后由 tracy01 于 2011-4-12 02:14 PM 编辑 ]

微微百科

发表于 2011-4-12 14:16:08 | 显示全部楼层

回复 7# 的帖子

根据你上面说的:”放在别的站上没有问题“,这样看来规则应该没有问题的。
另外你再看一下这里的路径是否有问题:
##### NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /

通常.htaccess文件应该放在网站根目录的。

tracy01

发表于 2011-4-12 14:26:20 | 显示全部楼层

我有做过一个站。。一样的。。头大。

微微百科

发表于 2011-4-12 14:27:40 | 显示全部楼层

你用的是IX的哪一个方案啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则