.htaccess 스니펫 생성기
일반적인 .htaccess 규칙을 생성합니다: HTTPS 강제, www 리디렉션, 캐시 헤더 설정, Gzip 활성화.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]이 도구 사용 방법
- 1
Open the dropdown and choose the rule you need (for example, Force HTTPS or Gzip compression).
- 2
Read the generated snippet shown in the code box below the dropdown.
- 3
Select the text and copy it, then paste it into your site's .htaccess file.
- 4
Switch the dropdown to a different rule to view another snippet — combine several by pasting them one after another.
.htaccess 스니펫 생성기란 무엇인가요?
.htaccess는 Apache의 디렉터리별 구성 파일입니다. URL 재작성, 리디렉션, 캐싱, 압축, 보안 헤더를 제어합니다. Hostinger와 대부분의 공유 호스팅은 Apache(또는 호환되는 LiteSpeed)를 사용합니다. 이 스니펫들은 가장 일반적인 필요 사항을 다룹니다.
일반적인 사용 사례
Forcing every visitor onto HTTPS after installing an SSL certificate on a shared Apache or LiteSpeed host.
Canonicalizing a domain to either the www or non-www version with a 301 redirect to consolidate SEO signals.
Adding a one-year browser cache to static assets so repeat visitors load CSS, JS, and modern image formats from cache.
Turning on Gzip compression for text responses to cut transfer size and improve page load time.
Hiding the contents of a folder that has no index file by disabling Apache's automatic directory listing.
Blocking PHP execution inside a public uploads directory so an attacker can't run a script they managed to upload.
자주 묻는 질문
.htaccess가 Nginx에서도 작동하나요?▼
.htaccess를 어디에 두어야 하나요?▼
관련 도구
비밀번호 생성기
브라우저에서 암호학적으로 안전한 비밀번호를 생성합니다. 어떤 서버로도 아무것도 전송되지 않으며, 무작위 바이트는 브라우저의 crypto API에서 가져옵니다.
WordPress 사용자 이름 생성기
안전하고 무작위적인 WordPress 관리자 사용자 이름을 생성합니다. 'admin'은 절대 사용하지 마세요. 무차별 대입 공격의 일순위 표적입니다.
도메인 이름 생성기
키워드를 바탕으로 브랜드 잠재력이 있는 도메인 이름 아이디어를 생성합니다. 조합에는 일반적인 접두사, 접미사, 수식어가 포함됩니다.
회사명 생성기
브랜드 잠재력을 갖춘 회사명 아이디어를 생성합니다. 실제 단어와 수식어를 조합하여 기억하기 쉬운 이름을 만들어냅니다.
URL 슬러그 생성기
텍스트를 URL에 적합한 슬러그로 변환합니다. 소문자로 바꾸고, 특수 문자를 제거하며, 단어를 하이픈으로 구분합니다.
Lorem Ipsum 생성기
목업과 디자인을 위한 채움 텍스트를 생성합니다. 단락, 문장, 단어 중에서 선택하세요.