Skip to main content

Order in .htaccess doesn't work

Comments

4 comments

  • uadm
    Ok, I found the problem: order deny,allow deny from all in the includes file. But why would that stop Order to work?
    0
  • cPRex Jurassic Moderator
    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
  • uadm
    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
  • cPRex Jurassic Moderator
    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.