Skip to main content

Either all Options must start with + or -, or no Option may [Resolved]

I have this line in a .htaccess file

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

I am getting the following error:

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

How can I fix this and still do the samething?

Better yet what does this line do and is it even needed?


Question Credit: d0001
Question Reference
Asked June 14, 2019
Posted Under: Network
30 views
1 Answers

The answer to your question is contained within the error message.

The right thing to do in this case would be to smack whoever wrote that line, and make a list of each option specified. If it appears with a minus at all, put it in once with a minus. If it appears only bare or with a plus, put it in once with a plus.

I believe you just want this:

Options +SymLinksIfOwnerMatch +ExecCGI +Includes +IncludesNOEXEC -Indexes

Why this particular option set is required in that area, I don't know. But, feel free to read the documentation for an explanation of each one, and see how or if your use case requires it.


credit: Falcon Momot
Answered June 14, 2019
Your Answer
D:\Adnan\Candoerz\CandoProject\vQA