ybwl 发表于 2010-8-7 17:04:48

3.0公司.co的解决方法.......................

qingdanet这位朋友的方法可以解决了:

1、修改include/global.func.php
$URL = DT_URL.$username.'.co/';
2规则:

# Destoon V3.0
# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
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 ^(.*)/(+)\.co/(+)/(.*)\.html$ $1/company/$3/index\.php\?homepage=$2&rewrite=$4
RewriteRule ^(.*)/(+)\.co/(+)([/])?$ $1/company/$3/index\.php\?homepage=$2
RewriteRule ^(.*)/(+)/(.*)\.shtml$ $1/$2/index\.php\?rewrite=$3
RewriteRule ^(.*)/(+)\.co/(.*)$ $1/company/index\.php\?homepage=$2&rewrite=$3
RewriteRule ^(.*)/htm/(.*)$ $1/index\.php\?&rewrite=$2
更新缓存就可以了。
刚才细看了一下,2.5公司主页里的供求信息点击就进入主站的了,3.0的是可以在公司主页打开的。3.0这样对用户体验好一些,但信息重复,大家说一下那个更好一些?

前鬼 发表于 2010-8-8 04:02:15


最好的方式是从主站的供求信息里点击能进入他主页的那条链接,然后让该信息处于唯一性,主站就起一个指向作用得了,这样信息不重复,用户体验又好,不过官方可能不考虑这样,,,这样主站的供求等模板就成废铁了。

前鬼 发表于 2010-8-8 04:03:40


缺点:让访客只关注这个企业去了,如果浏览者也是供应商,那可能他连注册的想法都没了,让他以为进入了一个企业的网站里了。。。

peter1 发表于 2010-8-8 07:45:37


2.5的也可以的,楼主没注意到吧?

ybwl 发表于 2010-8-8 10:48:33


是的。2.5时也可以的。

linker 发表于 2010-8-8 17:42:47


1-3楼,说得好,赞扬。

xuminhuia 发表于 2010-8-19 15:03:40


太感谢了 已经解决 顶贴
页: [1]
查看完整版本: 3.0公司.co的解决方法.......................