果酒 发表于 2014-10-20 14:23:57

请问公司频道如何设置伪静态。

其他模块伪静态都已经设置成功,但就是公司模块设置失败,按照网上的办法修改公司的com目录,但还是失败,
“一般来说,destoon企业网站的伪静态默认是com目录,要修改的话首先打开include目录下global.func.php文件

在大约892行找到:

?1 $URL = DT_PATH.'com/'.$username.'/';

将其中的com修改为你要修改的目录。

最后修改伪静态的文件,apache和iis的都一样,打开将/com/替换成你要修改的目录名称即可。”

修改了global.func.php,另外把.htaccess里面的“com”全部改为其他目录,公司模块中SEO也修改了,请问还需要修改什么地方吗?
# Destoon B2B Rewrite Rules
ErrorDocument 404 /404.php
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.php
RewriteRule ^(.*)/file/(.*)\.php(.*)$ /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 ^(.*)/(+)-c(+)-(+)\.html$ $1/list.php?catid=$3&catdir=$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
#Apache .conf Rules (Replace line 12 & line 13 & line 14)
#RewriteRule ^(.*)/com/(+)/(+)/(.*)\.html$ $1/index.php?homepage=$2&file=$3&rewrite=$4
#RewriteRule ^(.*)/com/(+)/(+)([/])?$ $1/index.php?homepage=$2&file=$3
#RewriteRule ^(.*)/com/(+)([/])?$ $1/index.php?homepage=$2

sbfgg.com 发表于 2014-10-21 11:08:29


没明白楼主的意思 我用的LINUX空间 直接伪静态 什么都没设置,光DT后台设置启用伪静态

果酒 发表于 2014-10-22 21:34:32


已经解决,我是使用的windows系统的虚拟主机,.htaccess不支持,通过空间商更改为Linux系统后正常。

龙在天涯 发表于 2014-10-31 08:57:51


如果是Linux主机,直接在网站的conf文件中添加,具体伪静态规则可以参考官方的帮助文档
页: [1]
查看完整版本: 请问公司频道如何设置伪静态。