Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

โ€œInvest in yourself โ€” your confidence is always worth it.โ€

Explore Cosmetic Hospitals

Start your journey today โ€” compare options in one place.

Apache: Comprehensive List of .htaccess Directives, Rules, and Commands

However, an โ€œabsolutely completeโ€ list is technically impossible to print here in fullโ€”because the .htaccess file can use nearly any Apache directive that is allowed by the AllowOverride setting and enabled modules.

  • The available directives change depending on your Apache version and enabled modules.
  • New modules can add their own directives.
  • Some directives are not allowed in .htaccess context (such as Listen, <VirtualHost>, etc).

BUT:
I can give you a very comprehensive list of all directives, rules, and commands that are commonly supported/used in .htaccess, including less common and advanced ones.
If you want the true, absolute list for your server, run:

httpd -L

on your own machine.


๐Ÿ“ƒ Comprehensive List of .htaccess Directives, Rules, and Commands

1. Rewrite & Redirect

  • RewriteEngine
  • RewriteBase
  • RewriteCond
  • RewriteRule
  • RewriteMap (rarely used in .htaccess)
  • Redirect
  • RedirectMatch
  • RedirectPermanent
  • RedirectTemp
  • RedirectGone

2. Authentication & Authorization

  • AuthType
  • AuthName
  • AuthUserFile
  • AuthGroupFile
  • Require
  • Satisfy
  • Order (legacy, deprecated)
  • Allow (legacy, deprecated)
  • Deny (legacy, deprecated)

3. Directory Index & Error Documents

  • DirectoryIndex
  • ErrorDocument

4. MIME, Handlers, and Filters

  • AddType
  • AddEncoding
  • AddCharset
  • AddHandler
  • RemoveHandler
  • AddOutputFilter
  • AddInputFilter
  • RemoveOutputFilter
  • RemoveInputFilter
  • DefaultType
  • TypesConfig

5. Access & Override Controls

  • Options
  • AllowOverride
  • AccessFileName

6. Environment Variables & Headers

  • SetEnv
  • UnsetEnv
  • PassEnv
  • SetEnvIf
  • SetEnvIfNoCase
  • Header
  • RequestHeader

7. Compression

  • AddOutputFilterByType
  • DeflateCompressionLevel
  • DeflateBufferSize
  • DeflateMemLevel
  • DeflateWindowSize

8. Caching

  • ExpiresActive
  • ExpiresDefault
  • ExpiresByType
  • Cache-Control (via Header)
  • CacheFile
  • FileETag

9. Security / SSL

  • SSLRequire
  • SSLRequireSSL
  • SSLOptions
  • SSLVerifyClient
  • SSLVerifyDepth

10. Custom Logging (via modules)

  • CustomLog (rarely allowed)
  • LogLevel
  • LogFormat

11. Proxy / Remote

  • ProxyPass
  • ProxyPassReverse
  • ProxyAddHeaders

12. Other Useful Directives

  • AddLanguage
  • AddDefaultCharset
  • BrowserMatch
  • BrowserMatchNoCase
  • LanguagePriority
  • ForceType
  • IndexIgnore
  • IndexOptions
  • AddIcon
  • AddDescription
  • DefaultIcon
  • FallbackResource
  • Options +FollowSymLinks / -Indexes, etc.

13. File & Directory Specific

  • <Files>
  • <FilesMatch>
  • <IfModule>
  • <If>
  • <IfDefine>
  • <Limit>
  • <LimitExcept>
  • <Directory> (only in configs, not .htaccess)
  • <Location> (not allowed in .htaccess)

14. CGI & Script

  • ScriptAlias (rarely in .htaccess)
  • ScriptInterpreterSource
  • AddHandler cgi-script
  • Options +ExecCGI

15. Miscellaneous

  • TimeOut (rare, typically not allowed)
  • Header set X-Frame-Options ...
  • Header always ...
  • SetHandler
  • UnsetHandler
  • Redirect 301 /old-url /new-url
  • RewriteOptions
  • RewriteLock

โšก๏ธ Advanced / Module-Specific Directives

Some directives are only available if certain modules are enabled.

  • mod_security: SecRuleEngine, SecRule, etc.
  • mod_evasive: DOSHashTableSize, etc.
  • mod_qos: QS_SrvMaxConnPerIP, etc.
  • mod_speling: CheckSpelling
  • mod_deflate: SetOutputFilter, etc.

Important Notes

  • Not all directives are allowed in .htaccess context. It depends on how AllowOverride is set in your httpd.conf or vhost configuration.
  • Some directives only work in server config, not in .htaccess.
  • Modules like mod_rewrite, mod_headers, mod_expires, mod_deflate, etc., must be enabled in Apache for those directives to work.

Authoritative, Up-to-date List


Summary Table of Most Used .htaccess Directives

Directive/RulePurpose/Use
RewriteEngine/Rule/CondURL rewriting and redirects
Redirect/RedirectMatchSimple redirects
AuthType/AuthUserFileAuthentication
Require/Order/Allow/DenyAccess control
DirectoryIndexDefault index file
ErrorDocumentCustom error pages
AddType/AddHandlerMIME types and handlers
OptionsEnable/disable features (Indexes, SymLinks)
ExpiresActive/ByTypeCaching headers
HeaderSet or modify HTTP headers
SetEnv/SetEnvIfEnvironment variables
,Target config to certain files

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
Iโ€™m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Top 10 No-Code Platforms Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, no-code platforms have become essential for businesses and individuals looking to build powerful applications, websites, and automations without the need for programming knowledge. These…

Read More

Top 10 AI Training Data Platforms Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, AI training data platforms have become the backbone of successful machine learning (ML) and artificial intelligence (AI) projects. These platforms streamline the process of…

Read More

Top 10 AI Poster & Flyer Design Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, AI-powered poster and flyer design tools have revolutionized the way businesses, marketers, educators, and creators produce visually stunning promotional materials. These tools leverage artificial…

Read More

Top 10 Collaboration Platforms Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, collaboration platforms are more essential than ever. As remote and hybrid work environments continue to thrive, having the right collaboration tool can be the…

Read More

The 5 Most Popular Email APIs Among Developers In 2026

In the modern world, where everything is going digital, email is among the most important means of communication both in personal and business life. As a developer,…

Read More

Top 10 Construction Management Software Tools in 2026: Features, Pros, Cons & Comparison

Introduction Construction Management Software (CMS) has become indispensable in 2026 for efficiently handling various aspects of construction projects, ranging from budgeting, scheduling, resource allocation, project tracking, to…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x