Przejdź do treści

Generator .htaccess

Generuj pliki .htaccess dla Apache z przekierowaniami HTTPS, cache przeglądarki i kompresją gzip. Darmowe, bez rejestracji, gotowe do wdrożenia.

Przekierowania

Przekierowuje cały ruch HTTP na HTTPS.

Przekierowuje non-www na www.

Przekierowuje www na non-www.

Performance

Kompresuje pliki HTML, CSS, JS, SVG i inne pliki tekstowe.

Ustawia długi czas ważności cache dla statycznych zasobów.

Security

Zapobiega wyświetlaniu zawartości katalogów.

Custom Error Pages

Wyświetla niestandardową stronę dla błędów 404.

Wygenerowany .htaccess
 

Co to jest .htaccess?

.htaccess is a distributed server configuration file for Apache HTTP Server. It enables per-directory configuration without touching the main server config. Widely used on shared hosting for URL rewriting, redirects, security rules, and performance optimizations.

Required Apache modules

mod_rewrite — URL rewriting and redirects. mod_deflate — GZIP compression. mod_expires — browser caching headers. mod_headers — custom HTTP response headers. These modules are enabled by default on most shared hosting providers.

Privacy

All rules are generated 100% in your browser. Nothing is sent to any server.