[分享解决]升级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
红色为添加的内容
经本人测试,一切正常啦。
http://bbs.destoon.com/static/image/smiley/default/smile.gif
好同志啊,这个要顶
谢谢啊,兄弟真不错。
学习一下,谢谢。。希望OK
官方为什么到今天还不改?
害苦我了
楼主好人好报!!!
页:
[1]