Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/286.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php MVC htaccess不工作_Php_Asp.net Mvc_.htaccess_Wamp - Fatal编程技术网

Php MVC htaccess不工作

Php MVC htaccess不工作,php,asp.net-mvc,.htaccess,wamp,Php,Asp.net Mvc,.htaccess,Wamp,他们有多个相关的问题和答案,但我仍然无法让我的应用程序运行 我的项目文件夹中有两个名为PROGMAN的应用程序,一个是mvc,另一个是传统编码的php。但是,非mvc应用程序运行良好,而mvc应用程序抛出URL未找到错误 以下是我的应用程序文件夹的组织方式 PROGMAN index.php NON MVC APP----runs MVC APPLICATIN applicat

他们有多个相关的问题和答案,但我仍然无法让我的应用程序运行

我的项目文件夹中有两个名为PROGMAN的应用程序,一个是mvc,另一个是传统编码的php。但是,非mvc应用程序运行良好,而mvc应用程序抛出URL未找到错误

以下是我的应用程序文件夹的组织方式

   PROGMAN

           index.php
           NON MVC APP----runs

           MVC APPLICATIN
                      application
                      .htaccess
                      index.php
mvc应用程序的.htaccess文件为

   Options -MultiViews
   RewriteEngine On
   Options -Indexes
   RewriteBase /PROGMAN/mvcapp/
   # General rewrite rules
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-l

   RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]

我希望您的Web服务器中启用了重写模块是的,apache中启用了mod_rewrite