通过别名目录访问网站时,URL重写不起作用

时间:2017-01-31 02:27:19

标签: php apache .htaccess mod-rewrite

我的本​​地计算机上的目录d:\ www \ mysite中有一个网站。

然后url http://localhost/mysite/index.php正确检索我的文件,该文件位于d:\ www \ mysite \ index.php

我的问题是我的.htaccess文件中的URL重写:

RewriteEngine On    
RewriteRule . /front-controller.php [L]

我收到了这个回复:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at admin@dominio.org to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

这是我的apache conf

Alias /debian /mnt/www

<Directory /mnt/www>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Require all granted
</Directory>

0 个答案:

没有答案