Home > Apache > .htaccess error

.htaccess error

July 19, 2009 Posted by KP

My site got ‘internal server configuration’ errors, the Apache error log file for this domain has the following error message:

.htaccess: order takes one argument, ‘allow,deny’, ‘deny,allow’, or ‘mutual-failure’


After checking .htaccess file again and again, it turned out to be the following line:

order allow, deny

I added an extra space before ‘deny’ (coding habits), the problem was fixed after I removed the space. I’m very surprised that Apache can’t tolerate an extra space.

Bookmark and Share


Related Posts:

Filed Under: Apache

Leave a Comment









*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word




Categories

Archives

Links

  • Dedicated Servers
  • Meta