xian8com 发表于 2010-9-30 14:55:57

[分享解决]升级3.0企业会员伪静态问题解决办法

.htaccess规则使用官方的规则后,出现打开企业会员的所有详细页都是会员首页。
解决办法:
rewrite规则改成:
# Destoon B2B Rewrite Rules
ErrorDocument 404 /404.php
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.php
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
RewriteRule ^(.*)/show-(+)([\-])?(+)?\.html$ $1/show.php?itemid=$2&page=$4
RewriteRule ^(.*)/list-(+)([\-])?(+)?\.html$ $1/list.php?catid=$2&page=$4
RewriteRule ^(.*)/show/(+)/(+)?([/])?$ $1/show.php?itemid=$2&page=$3
RewriteRule ^(.*)/list/(+)/(+)?([/])?$ $1/list.php?catid=$2&page=$3
RewriteRule ^(.*)/(+)/(.*)\.shtml$ $1/$2/index.php?rewrite=$3
RewriteRule ^(com)/(+)/(+)/(.*)\.html$ index.php?homepage=$2
&file=$3
&rewrite=$4
RewriteRule ^(com)/(+)/(+)([/])?$ index.php?homepage=$2
&file=$3

RewriteRule ^(com)/(+)([/])?$ index.php?homepage=$2


红色为添加的内容

经本人测试,一切正常啦。

hk2009 发表于 2010-9-30 16:19:31


http://bbs.destoon.com/static/image/smiley/default/smile.gif
好同志啊,这个要顶

shk322 发表于 2010-12-1 10:29:29


谢谢啊,兄弟真不错。

yanghe 发表于 2010-12-5 15:50:15


学习一下,谢谢。。希望OK

jear 发表于 2010-12-10 15:50:38


官方为什么到今天还不改?

害苦我了

楼主好人好报!!!
页: [1]
查看完整版本: [分享解决]升级3.0企业会员伪静态问题解决办法