ServerSpan · Unelte

.htaccess rules generator

Create powerful and optimized Apache .htaccess rules in seconds.

Redirects Security headers Hotlink & blocking

Generated .htaccess

Copy or download the rules.

# Your generated .htaccess rules will appear here.
# Pick the options you need, then click “Generate .htaccess”.

ServerSpanAi nevoie de cineva care să administreze infrastructura?Să discutăm o colaborare de administrare pentru ceea ce folosești în realitate. Scopul, infrastructura și oferta sunt adaptate proiectului tău.Să discutăm proiectul

Administrarea și găzduirea sunt concepute pentru fiecare colaborare.

Configuration

Choose options, then generate.

Redirects & rewrites

One per line, format: /source-path,http://destination.url

Caching & performance
Security
Visitor blocking

One IP per line. (Exact match)

One per line, matches if the User-Agent contains any of these strings.

Used as the allowlisted referrer domain.

Custom error pages

One per line, format: error_code,/path/to/page.html



Frequently asked questions

Need .htaccess help?

We can harden and optimize your Apache setup.

From redirects and security headers to caching policies and hotlink protection, our team can help you deploy clean, safe and effective rules.

Get in touch