user2075899
user2075899

Reputation: 79

Should .htaccess commands be case sensitive?

I have seen many tutorials on . Different people write differently. You can find variations of casing:

rewriteengine on
RewriteEntgine on
Rewritengine On

It seems all of those are working fine.

  1. Is there a reason for casing commands?
  2. Is it possible for a command to fail due to wrong casing?

Upvotes: 1

Views: 141

Answers (1)

jsageryd
jsageryd

Reputation: 4633

Apache documentation suggests that the directives are not case-sensitive, but the argument may be. I would recommend you stick to the format declared in the official documentation to avoid possible confusion and/or failure.

http://httpd.apache.org/docs/current/configuring.html#syntax http://httpd.apache.org/docs/current/mod/mod_rewrite.html#RewriteEngine

Upvotes: 3

Related Questions