fan7421436 发表于 2013-7-7 15:44:01

URL Rewrite(伪静态)无效【急】

下载5.0的destoon,使用xampp来运行。后台设置
泛解析绑定目录:company目录
URL Rewrite(伪静态):开启
运行系统:windows
.htaccess为官方默认[*]# 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
[*]复制代码在开启伪静态后,访问报价、企业网站和新闻等信息时,全部都显示

Object not found!
   The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.

Error 404
localhost
2013-7-7 15:52:07
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1

等信息,由此看来404解析也没弄好。搞了几天了,希望管理员进来看看解决办法。

duomi 发表于 2013-8-21 14:50:42


楼上的兄弟,你解决了吗?

fan7421436 发表于 2013-8-29 21:36:14


嗯 解决了
我的错误是在本地设置一直不对 传到虚拟机上面后 按照官方提供的API,设置了虚拟机IIS下的伪静态配置就对了
页: [1]
查看完整版本: URL Rewrite(伪静态)无效【急】