コンテンツにスキップ

.htaccessジェネレーター

Apache用の.htaccessファイルを生成。HTTPSリダイレクト、ブラウザキャッシュ、gzip圧縮に対応。無料、登録不要、すぐにデプロイ可能。

リダイレクト

すべての HTTP トラフィックを HTTPS にリダイレクト。

non-wwwを www にリダイレクト。

wwwを non-www にリダイレクト。

Performance

HTML、CSS、JS、SVGおよびその他のテキストファイルを圧縮。

静的アセットのキャッシュ有効期限を長く設定。

Security

ディレクトリの内容が一覧表示されないようにする。

Custom Error Pages

404 エラーに対してカスタムページを表示。

生成された .htaccess
 

.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.