我的网络服务器上有以下DocumentRoot
结构:
folder1
folder2
我可以以标准方式访问所有这些
my.ip.address.here/folder1
my.ip.address.here/folder2
我想将请求重定向到没有将特定文件夹指定到一个默认文件夹的网站,即“folder1”。例如,如果我在浏览器中键入my.ip.address.here
,它会将我重定向到“my.ip.address.here/folder1”。我的文件DocumentRoot
夹内有 .htaccess 文件,其中包含以下内容:
RewriteEngine On
RewriteRule ^$ /folder1 [R=301, L]
当我在浏览器中运行网站时,出现以下错误:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@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.
配置可能有什么问题?提前致谢!