回复人:mrshelly(Shelly) ( 两星(中级)) 信誉:100  2007-1-21 17:27:02  得分:100
?  重定向到 302 /肯定是你的 RewriteConf 没有写好.这样:
^/(.[^\.]*)\.php /$1.htm?%{QUERY_STRING}请问这个跳转怎么用啊

解决方案 »

  1.   

    感谢各位的帮忙,只要过滤真实的地址访问,rewrite过的url还照样可以访问就行了
      

  2.   

    我apache配置成可以让其没主页时索引目录后便不能访问.html文件了,但改为.htm便可以正常访问,那位高人帮下我,下面是出错信息:Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log.
    Apache/2.0.55 (Win32) PHP/5.1.2 Server at localhost Port 80
      

  3.   

    if (eregi("function.php",$_SERVER['PHP_SELF'])) {
        Header("Location: ../index.php");
        die();
      }
    怎么把这个加入.htaccess文件并让其生效?