WAMP - mod_rewrite因本地路径不完整而失败

时间:2013-04-04 18:10:46

标签: apache mod-rewrite wamp local

我正在尝试在Windows上设置我的PHP项目& WAMP,但我碰到了一个非常奇怪的路障。

在我的.htaccess中,我有以下全部重定向:

RewriteRule ^(.*)$ index.php?$1 [PT,L]

在Linux& Apache这很好用,例如:/ some_alias / items成功地重定向到我的index.php文件,该文件处理来自该页面的页面请求。

但是,对于Windows,我在访问http://xx.xx.xx.xx/some_alias/index

时会收到以下信息
Not Found

The requested URL /Users/username/workspace/project/some_alias/index.php was not found on this server.

我的别名文件如下:

Alias /some_alias/ "c:/users/username/workspace/project/some_alias/" 
<Directory "c:/users/username/workspace/project/some_alias/">

AllowOverride all
Order allow,deny
Allow from all
</Directory>

发生了什么事?

0 个答案:

没有答案
相关问题