Rewrite错误了,你的重写URL代码是否正确???

解决方案 »

  1.   

    用index.php代替index是否能访问???
      

  2.   

    重写规则是这样的
    RewriteEngine on
    RewriteRule .* index.php
    php_flag magic_quotes_gpc off
    php_flag register_globals offIndex.php为
    <?php
    error_reporting(E_ALL|E_STRICT);
    date_default_timezone_set('Asia/Shanghai');
    set_include_path('.'.PATH_SEPARATOR.'./library'.PATH_SEPARATOR.'./application/models/'.PATH_SEPARATOR.get_include_path());
    //include("zend/loader.php");
    //Zend_Loader::loadClass('Zend_Controller_Front');
    require_once 'Zend/Controller/Front.php';
    $frontController = Zend_Controller_Front::getInstance();
    //$frontController->setBaseUrl('/ZF/');
    $frontController->throwExceptions(true);
    $frontController->setControllerDirectory('./application/controllers/');
    $frontController->dispatch();
    ?>
      

  3.   

    rewriterule 你照zfw的手册抄过去就行了