Htaccess 생성기

무료 온라인 .htaccess 생성기 & Apache 서버 설정 스튜디오

HTTPS 강제 리디렉션, WWW 및 non-WWW 정규화, 브라우저 캐싱, 특정 IP 차단, 디렉토리 리스팅 방지 규칙을 브라우저에서 100% 실시간 생성하세요.

빠른 프리셋 적용:

1. 리다이렉션 및 도메인 규칙

2. 보안 및 디렉토리 접근 제어

Prevents visitors from seeing directory folder contents when no index file exists.

Mitigates clickjacking, MIME sniffing, and XSS vulnerabilities via mod_headers.

Supports Apache 2.4 (Require not ip) with automatic fallback for Apache 2.2.

4. 성능 최적화, 캐싱 및 압축

Instructs browsers to cache static assets locally to reduce server bandwidth.

Compresses text, HTML, CSS, JS, and JSON data before sending it over the wire.

Routes all non-file/non-directory requests to /index.html for React, Vue, or Next export SPAs.

3. 사용자 정의 에러 페이지

실시간 생성된 .htaccess 코드

.htaccess
# ================================================================
# Apache .htaccess Configuration File
# Generated by Tool 200 (https://tool200.com/htaccess-generator)
# 100% Client-Side Free .htaccess Generator
# ================================================================

# Disable directory file browsing
Options -Indexes

# Rewrite Engine Settings
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    # Force HTTPS Redirection
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    # Redirect www to non-www
    RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
    RewriteRule ^(.*)$ https://%1%{REQUEST_URI} [L,R=301]

</IfModule>

# Custom Error Documents
ErrorDocument 404 /404.html
ErrorDocument 500 /500.html

# Essential Security Headers
<IfModule mod_headers.c>
    Header set X-XSS-Protection "1; mode=block"
    Header set X-Frame-Options "SAMEORIGIN"
    Header set X-Content-Type-Options "nosniff"
    Header set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>

# Leverage Browser Caching (Expires Headers)
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 1 month"

    # HTML document: don't cache or short cache
    ExpiresByType text/html "access plus 0 seconds"

    # CSS and JavaScript: 1 month
    ExpiresByType text/css "access plus 1 month"
    ExpiresByType text/javascript "access plus 1 month"
    ExpiresByType application/javascript "access plus 1 month"

    # Images & Favicons: 1 year
    ExpiresByType image/x-icon "access plus 1 year"
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType image/png "access plus 1 year"
    ExpiresByType image/gif "access plus 1 year"
    ExpiresByType image/webp "access plus 1 year"
    ExpiresByType image/svg+xml "access plus 1 year"

    # Web Fonts: 1 year
    ExpiresByType font/ttf "access plus 1 year"
    ExpiresByType font/woff "access plus 1 year"
    ExpiresByType font/woff2 "access plus 1 year"
</IfModule>

# Gzip / Deflate Compression
<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
    AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
    AddOutputFilterByType DEFLATE application/json application/xml application/rss+xml
    AddOutputFilterByType DEFLATE image/svg+xml font/ttf font/otf
</IfModule>
모든 설정은 브라우저 로컬에서 안전하게 생성되며 서버에 저장되지 않습니다.

Tool 200 온라인 .htaccess 생성기를 사용하는 이유

Apache 웹 서버 성능 최적화, 안전한 HTTPS 접속 보장, 브라우저 캐싱 활성화, 민감 경로 보호를 위한 검증된 서버 설정 코드를 즉시 획득하세요.

완벽한 HTTPS 및 도메인 정규화

검증된 mod_rewrite 규칙을 통해 안전한 HTTPS 암호화 접속을 강제하고, WWW 및 non-WWW 도메인을 일관되게 단일 주소로 리다이렉션합니다.

브라우저 캐싱 및 Gzip 압축 가속

mod_expires와 mod_deflate를 활용하여 이미지, CSS, JS 파일의 캐시 수명을 지정하고 텍스트 압축을 통해 페이지 로딩 속도와 Core Web Vitals를 극대화합니다.

강화된 웹 보안 및 접근 제어

서버 디렉토리 목록(인덱싱) 노출 차단, 악성/의심 IP 접근 차단, 사용자 정의 에러 페이지(404, 500) 지정을 외부 서버 통신 없이 안전하게 생성합니다.

잠깐의 두뇌 휴식

머리도 식힐 겸 가벼운 미니게임 어떠세요?

작업 중 잠시 두뇌를 환기할 수 있는 무료 웹 브라우저 게임 컬렉션입니다.