KROLDON.APP
REWRITE CONFIG BUILDER

HTACCESS & NGINX GENERATOR

Generate production-ready Apache .htaccess and Nginx rewrite configs with HTTPS, 301s, and security headers.

# ==================================================================
# Apache .htaccess Configuration - Generated by Kroldon.app
# Domain: kroldon.app
# ==================================================================

# Prevent Directory Browsing
Options -Indexes

RewriteEngine On
RewriteBase /

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

# Custom URL Redirects
Redirect 301 /old-blog /blog

<IfModule mod_headers.c>
  # HTTP Strict Transport Security (HSTS)
  Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
  Header set X-Content-Type-Options "nosniff"
  Header set X-Frame-Options "SAMEORIGIN"
  Header set X-XSS-Protection "1; mode=block"
  Header set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>

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

<IfModule mod_deflate.c>
  # Enable Gzip Compression
  AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
  AddOutputFilterByType DEFLATE application/javascript application/json application/xml
  AddOutputFilterByType DEFLATE image/svg+xml
</IfModule>

HOW TO GENERATE SERVER REWRITES IN 3 STEPS

01

Select Server

Choose Apache (.htaccess) or Nginx (nginx.conf).

02

Configure Rules

Toggle HTTPS, canonical redirects, and security headers.

03

Deploy Config

Copy the config code or download the generated file.

FREQUENTLY ASKED QUESTIONS

Place .htaccess in your Apache public root directory (e.g. public_html).