destoon采集论坛

 找回密码
 立即注册
查看: 186|回复: 2

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

[复制链接]

4

主题

9

回帖

246

积分

中级会员

Rank: 3Rank: 3

积分
246
发表于 2013-7-7 15:44:01 | 显示全部楼层 |阅读模式
下载5.0的destoon,使用xampp来运行。后台设置
  泛解析绑定目录:company目录
  URL Rewrite(伪静态):开启
  运行系统:windows
  .htaccess为官方默认[ol]
  • # 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-([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 ^(.*)/([A-za-z0-9_\-]+)-c([0-9]+)-([0-9]+)\.html$ $1/list.php?catid=$3&catdir=$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$ index.php?homepage=$2&file=$3&rewrite=$4
  • RewriteRule ^(com)/([a-z0-9_\-]+)/([a-z]+)([/])?$ index.php?homepage=$2&file=$3
  • RewriteRule ^(com)/([a-z0-9_\-]+)([/])?$ index.php?homepage=$2
  • #Apache .conf Rules (Replace line 12 & line 13 & line 14)
  • #RewriteRule ^(.*)/com/([a-z0-9_\-]+)/([a-z]+)/(.*)\.html$ $1/index.php?homepage=$2&file=$3&rewrite=$4
  • #RewriteRule ^(.*)/com/([a-z0-9_\-]+)/([a-z]+)([/])?$ $1/index.php?homepage=$2&file=$3
  • #RewriteRule ^(.*)/com/([a-z0-9_\-]+)([/])?$ $1/index.php?homepage=$2
  • [/ol]复制代码在开启伪静态后,访问报价、企业网站和新闻等信息时,全部都显示
      
      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解析也没弄好。搞了几天了,希望管理员进来看看解决办法。

  • 回复

    使用道具 举报

    9

    主题

    11

    回帖

    71

    积分

    注册会员

    Rank: 2

    积分
    71
    发表于 2013-8-21 14:50:42 | 显示全部楼层

    楼上的兄弟,你解决了吗?
    回复 支持 反对

    使用道具 举报

    4

    主题

    9

    回帖

    246

    积分

    中级会员

    Rank: 3Rank: 3

    积分
    246
     楼主| 发表于 2013-8-29 21:36:14 | 显示全部楼层

    嗯 解决了
      我的错误是在本地设置一直不对 传到虚拟机上面后 按照官方提供的API,设置了虚拟机IIS下的伪静态配置就对了
    回复 支持 反对

    使用道具 举报

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

    本版积分规则

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

    GMT+8, 2025-11-23 08:46 , Processed in 0.016462 second(s), 21 queries .

    Powered by Discuz! X3.4

    © 2001-2023 Discuz! Team.

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