Are there any resources on the correct ordering of Apache .htaccess directives?
Question
I was tweaking my .htaccess
file for the first time, and ran into the problem where my custom 404 page would not load because I placed the Options -Indexes
directive after the ErrorDocument 404
directive. Seeing as ordering directives willy-nilly can easily break the intended behavior, is there any online resource that details what the correct, or at least standard ordering of directives should be?
I couldn't find anything after a google search and a quick scan of the Apache docs.
Solution
My bad - the actual problem was that I was using a comment on the same line as a directive.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow