0

我正在尝试创建一个 MVC 框架,因此我必须更改 url,为此,我必须配置 .htaccess 文件。文件中写入了以下命令:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l

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

我正在使用 wamp 服务器并在 apache 模块中检查了 rewrite_module,但仍然收到内部服务器错误:

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.

问题的解决方案是什么?

4

1 回答 1

0

尝试:

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

注意,不是.

于 2013-07-04T14:05:45.050 回答