我也遇到了,是和discuz的重写规则冲突了,我的完美实现DT和Discuz的为静态了,我是写在conf/httpd.conf 文件里,不是目录里的.htaccess。
[ol]# Destoon B2B Rewrite Rules [I]# ErrorDocument 404 /404.phpRewriteEngine On# RewriteBase /RewriteRule ^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.phpRewriteRule ^(.*)-htm-(.*)$ $1.php?$2RewriteRule ^(.*)/show-([0-9]+)([\-])?([0-9]+)?\.html$ $1/show.php?itemid=$2&page=$4RewriteRule ^(.*)/list-([0-9]+)([\-])?([0-9]+)?\.html$ $1/list.php?catid=$2&page=$4RewriteRule ^(.*)/show/([0-9]+)/([0-9]+)?([/])?$ $1/show.php?itemid=$2&page=$3RewriteRule ^(.*)/list/([0-9]+)/([0-9]+)?([/])?$ $1/list.php?catid=$2&page=$3RewriteRule ^(.*)/([a-z]+)/(.*)\.shtml$ $1/$2/index.php?rewrite=$3RewriteRule ^(.*)/com/([a-z0-9_]+)/([a-z]+)/(.*)\.html$ $1/company/$3/index.php?homepage=$2&rewrite=$4RewriteRule ^(.*)/com/([a-z0-9_]+)/([a-z]+)([/])?$ $1/company/$3/index.php?homepage=$2RewriteRule ^(.*)/com/([a-z0-9_]+)([/])?$ $1/company/index.php?homepage=$2# discuz1.5 Rewrite Rules RewriteEngine On RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^(.*)/topic-(.+).html$ $1/portal.php?mod=topic&topic=$2&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^(.*)/article-([0-9]+).html$ $1/portal.php?mod=view&aid=$2&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^(.*)/forum-(w+)-([0-9]+).html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^(.*)/group-([0-9]+)-([0-9]+).html$ $1/forum.php?mod=group&fid=$2&page=$3&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^(.*)/space-(username|uid)-(.+).html$ $1/home.php?mod=space&$2=$3&%1 RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^(.*)/([a-z]+)-(.+).html$ $1/$2.php?rewrite=$3&%1 [/I] [/ol]复制代码
[ 本帖最后由 cnginkgo 于 2011-3-27 23:14 编辑 ] |