我跟着this作为解决方案,而我的.htaccess现在是:
<DirectoryMatch /mypath/to/my_subdir/(.)*/>
Options +Indexes
</DirectoryMatch>
然而,当我访问我的子目录(http://www.example.org/my_sub/
)时,我收到以下错误消息:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@mydomain.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.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
上面提到的.htaccess文件位于/public_html/
目录中。