destoon采集论坛

 找回密码
 立即注册
查看: 103|回复: 3

公司主页的rewrite问题 链接的都是首页

[复制链接]

64

主题

39

回帖

296

积分

中级会员

Rank: 3Rank: 3

积分
296
发表于 2010-11-17 12:46:04 | 显示全部楼层 |阅读模式
公司主页的rewrite问题                                                                                                                                                                                                                                                                                                                        开启rewrite后 公司主页


localhost:81/com/bjjsg/credit/
localhost:81/com/bjjsg/news/
localhost:81/com/bjjsg/photo/

.............


链接的都是首页,如果关闭rewrite 一切正常


请问这是什么原因?
回复

使用道具 举报

5

主题

5

回帖

31

积分

新手上路

Rank: 1

积分
31
发表于 2010-11-29 16:24:58 | 显示全部楼层

我的也一样,不知道如何办呢
回复 支持 反对

使用道具 举报

21

主题

23

回帖

123

积分

注册会员

Rank: 2

积分
123
发表于 2010-11-29 19:47:47 | 显示全部楼层

我的也一样,不知道如何办
回复 支持 反对

使用道具 举报

0

主题

4

回帖

12

积分

新手上路

Rank: 1

积分
12
发表于 2011-3-27 23:03:32 | 显示全部楼层

我也遇到了,是和discuz的重写规则冲突了,我的完美实现DT和Discuz的为静态了,我是写在conf/httpd.conf 文件里,不是目录里的.htaccess。
[ol]
  • # Destoon B2B Rewrite Rules
  • [I]
  • # 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-([0-9]+)([\-])?([0-9]+)?\.html$ $1/show.php?itemid=$2&page=$4
  • RewriteRule ^(.*)/list-([0-9]+)([\-])?([0-9]+)?\.html$ $1/list.php?catid=$2&page=$4
  • RewriteRule ^(.*)/show/([0-9]+)/([0-9]+)?([/])?$ $1/show.php?itemid=$2&page=$3
  • RewriteRule ^(.*)/list/([0-9]+)/([0-9]+)?([/])?$ $1/list.php?catid=$2&page=$3
  • RewriteRule ^(.*)/([a-z]+)/(.*)\.shtml$ $1/$2/index.php?rewrite=$3
  • RewriteRule ^(.*)/com/([a-z0-9_]+)/([a-z]+)/(.*)\.html$ $1/company/$3/index.php?homepage=$2&rewrite=$4
  • RewriteRule ^(.*)/com/([a-z0-9_]+)/([a-z]+)([/])?$ $1/company/$3/index.php?homepage=$2
  • RewriteRule ^(.*)/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 编辑 ]
  • 回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    QQ|小黑屋|手机版|Archiver|destoon采集论坛

    GMT+8, 2025-11-26 20:37 , Processed in 0.015578 second(s), 21 queries .

    Powered by Discuz! X3.4

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表