Order in .htaccess doesn't work
Hi,
Have a problem seen here before in previous tickets, which they all ended up in "open a ticket please" - no solution.
anywhy:
.htaccess:
Order deny,allow
deny from all
Doesn't work on any directory.
The .htaccess is of course working, I tried with a simple typo in it, and got internal server error, so I know I'm getting to the right place and .htaccess is viewed by apache.
Simply - deny from all - doesn't work.
Unfortunately I can't grant access to cpanel to this server, but since I seen there's an issue going from 2 month ago, I was hoping to get a solution here.
Thanks.
-
Ok, I found the problem: order deny,allow deny from all in the includes file. But why would that stop Order to work? 0 -
Hey there! Are you saying the code from your second post was in an include file? If so, can you share if this was a global include or something specific to the domain? 0 -
Hi. It was in global include file, first post-VH then pre-VH. Both disabled Order in .htaccess in all directories. When removed from includes and put in .htaccess of public_html everything worked fine. I was wandering if that's a bug in apache, or maybe in cpanel's apache, or a feature I haven't found any document on it. Thanks 0 -
Thanks for that confirmation - this seems like normal behavior to me, as the statements go logically in the order they are read. In your case, it read the include first and processed that "deny from all" so anything added after that wouldn't matter. 0
Please sign in to leave a comment.
Comments
4 comments