PricingDocsBlog
Log inSign up
Docs
›
Development

.htaccess overview

Meet the powerful Apache .htaccess configuration file.

Apache web server configuration via .htaccess.
Intro
What to do with .htaccess
Route traffic with smart redirects.
Redirects
Force https, domain forwarding and more
Secure areas with authentication.
HTTP auth
Creating a password protected area
Compress responses for faster delivery.
GZIP
Enable compression for other HTTP responses
Target rules by environment context.
Environment detection
Specific .htaccess rules for production / development
Enforce secure connections always.
HSTS
Force https, domain forwarding and more
More .htaccess tricks.
More .htaccess tips
Comments, WordPress, file extensions, custom errors
Debug .htaccess config problems.
Troubleshooting
Common .htaccess issues and how to detect them
Control HTTP response headers with .htaccess.
HTTP headers
Cache control and CORS

Build the web you want to see

fortrabbit

PHP hosting for developers.

Running on AWS. Serving world wide.

Private by design. No cookies.

Rooted in Berlin. Since 2012.

Start your free trial →

No spam. No credit card required.

Software

  • Craft CMS
  • Kirby
  • Statamic
  • Laravel
  • ↓ Show all

Solutions

  • You
  • Freelancer
  • Agency
  • Startup
  • ↓ Show all

Hosting guide

  • Why it's hard
  • How to choose
  • Providers

Company

  • Environment 🍃
  • Legal center
  • Culture
  • ↓ Show all

Contact us

  • Technical help
  • Account recovery
  • Website down
  • ↓ Show all

Docs

  • Platform reference
  • Install guides
  • Dev tips
Status→