本帖最后由 k1060220963 于 2010-11-08 14:12:36 编辑

解决方案 »

  1.   

    我用ecshop二次开发,默认是访问index.php跳转到http://192.168.0.16:82/一个数字
    伪静态规则是
    <FilesMatch "\.(bak|inc|lib|sh|tpl|lbi|dwt)$">
      order deny,allow
      deny from all
    </FilesMatch>
    RewriteEngine On
    #RewriteBase /
    # direct one-word access
    RewriteRule ^index\.html$ index\.php [L]
    RewriteRule ^category$ index\.php [L]
    RewriteRule ([0-9]+)$ group_buy\.php\?act=view&id=$1 [QSA,L]
    (上面这句就是我要跳转的地址)

    我的配置文件也开启了伪静态
      httpd.conf的代码是
      LoadModule rewrite_module modules/mod_rewrite.so把前面的#好去掉了
      又加上了<Directory "E:/www/tuan">
      Options FollowSymLinks
      AllowOverride All
    </Directory>

    重启apache,访问http://192.168.0.16:82/ 跳转到http://192.168.0.16:82/36.但是页面显示的是下面的内容
    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
    192.168.0.16
    11/08/10 13:55:19
    Apache/2.2.9 (APMServ) mod_ssl/2.2.9 OpenSSL/0.9.8h PHP/5.2.6 

    如果我访问http://192.168.0.16:82/group_buy.php则显示正常。
    请问这是什么原因。急切等待答案中
      

  2.   

    这条重写规则,是没什么问题的你觉得你检查下,确认服务器rewrite已经生效?