所有选项都必须以+或 – 开头,否则选项可能会

我有一个.htaccess文件中的这一行

Options +SymLinksIfOwnerMatch ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch Indexes -Indexes 

我收到以下错误:

 Either all Options must start with + or -, or no Option may. 

我如何解决这个问题,仍然做同样的事情?

更好的是,这条线是做什么的,甚至是需要的?

错误消息中包含您的问题的答案。

在这种情况下,做正确的事情就是打出写这行的人,并列出每个指定的选项。 如果它出现一个减号,一次减去一次。 如果它只出现裸露或加号,用加号放入一次。

我相信你只是想要这个:

 Options +SymLinksIfOwnerMatch +ExecCGI +Includes +IncludesNOEXEC -Indexes 

为什么在这个领域需要这个特定的选项,我不知道。 但是,请随时阅读文档以获取对每个文档的解释,并查看您的用例是如何以及是否需要它。