Zend:.htaccess现在不能在windows上工作如何继续我的项目?

我在中期开始了一个项目的工作。 我们在Ubuntu上使用Zend Framework,PHP,MySql,Ajax,jQuery和jSon。 这是在Ubuntu的工作。

现在我切换到Windows。 我安装了Wamp,Eclipse,并在我的项目的窗口上创build一个主机(test.dev)。 但是,当通过test.dev启动项目。 它给我在浏览器窗口上的以下错误:

Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, admin@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. 

然后我删除了公共/ .htaccess文件,然后再试一次。 这次没有显示错误,但是浏览器页面是空白的。 我检查了萤火虫(Mozilla浏览器),并没有反应在CONSOL。

我的.htaccess文件是这样的:

 SetEnv APPLICATION_ENV development RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L] 

有人可以告诉我,可能是什么问题,以及如何解决这个问题。 如果你需要一些其他的信息,那么告诉我你需要什么types的信息来解决这个问题。

谢谢

500 - Internal server Error通常是由配置文件中的500 - Internal server Error引起的。

考虑到它的工作(即没有错误),当你删除.htaccess文件,可能有什么会导致麻烦。

作为第一个想法(因为除了重写规则之外,你的内容并不多) ,你确定mod_rewrite已经启用了吗?
你可以在你的Apache配置中检查这个:应该有这样一行:

 Loadmodulee rewrite_module modules/mod_rewrite.so 

如果这不起作用,那么Apache的error_log文件中是否有错误信息?

.htaccess文件看起来很好。 我敢打赌, mod_rewrite模块没有在你的本地Apache中激活。 检查你的httpd.conf文件

先看看Apache的error.log文件。 它会给你详细的信息关于500错误及其原因。

Pekka和Pascal说的是正确的,但是如果mod_env模块加载到Apache配置中,您可以使用SetEnv指令。

当我将应用程序投入生产时,我也遇到了同样的问题。 令我惊讶的是,这个模块在某些安装中没有启用。